标签:
1.发现在 selenium py脚本中添加
import logging logging.basicConfig(lever=logging.DEBUG)
执行时会打印日志,可以参考学习原理
lance@lance-K45VD:~/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
标签:
原文地址:http://www.cnblogs.com/Citizen/p/5231322.html