首页新闻找找看学习计划

selenium技术求助

0
悬赏园豆:5 [待解决问题]
1 from selenium import webdriver
2 
3 browser = webdriver.Chrome()
4 print("Test-1")
5 browser.get("http://www.baidu.com")
6 print("Test-2")
7 print(browser.page_source)
8 print("Test-3")
9 browser.close()

代码是以上的,还是报错,结果以下

Test-1
Traceback (most recent call last):
  File "***/play.py", line 44, in <module>
    browser.get("http://www.baidu.com")
  File "***\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get
    self.execute(Command.GET, {'url': url})
  File "***\Python36\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "***\Python36\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
    raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: unknown error: Runtime.executionContextCreated has invalid 'context': {"auxData":{"frameId":"B198AE117D9FE0C3D7AA828D4426298E","isDefault":true,"type":"default"},"id":1,"name":"","origin":"://"}
  (Session info: chrome=73.0.3683.86)
  (Driver info: chromedriver=2.13.307647 (5a7d0541ebc58e69994a6fb2ed930f45261f3c29),platform=Windows NT 10.0 x86_64)


Process finished with exit code 1

该怎么解决呢

Tikan的主页 Tikan | 初学一级 | 园豆:197
提问于:2019-04-17 00:35
< >
分享
所有回答(2)
1
ycyzharry | 园豆:17720 (专家六级) | 2019-04-17 09:24
0

尽量选择低版本chorme

秦大帽tester | 园豆:204 (菜鸟二级) | 2019-04-18 14:16
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册