1.发现在 selenium py脚本中添加
import logging logging.basicConfig(lever=logging.DEBUG)
执行时会打印日志,可以参考学习原理
[email protected]:~/easySelenium/com$ python test.py DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:46097/session {"desiredCapabilities": {"platform": "ANY", "browserName": "chrome", "version": "", "javascriptEnabled": true, "chromeOptions": {"args": [], "extensions": []}}} DEBUG:selenium.webdriver.remote.remote_connection:Finished Request DEBUG:selenium.webdriver.remote.remote_connection:POST http://127.0.0.1:46097/session/61cf8bb90024327a21efa89c7e6e2b84/url {"url": "http://www.baidu.com", "sessionId": "61cf8bb90024327a21efa89c7e6e2b84"} DEBUG:selenium.webdriver.remote.remote_connection:Finished Request
时间: 2024-10-31 03:11:24