selenium.common.exceptions.WebDriverException: Message: unknown error: cannot determine loading status from unknown error: missing or invalid 'entry.level' (Session info: chrome=84.0.4147.125) (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862

刘超 5月前 ⋅ 886 阅读   编辑

一、描述

  mac执行selenium程序,报如下错误

[/Workspace/adx/stat/scripts/adx_stat/sbin/py/dsp]$ python crawler_dsp.py                                                                         *[master] 
Traceback (most recent call last):
  File "crawler_dsp.py", line 125, in 
    df = funImpl(args,dsp)
  File "crawler_dsp.py", line 51, in login
    browser.get('https://dashboard.amlinetwork.com/login')
  File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 333, in get
    self.execute(Command.GET, {'url': url})
  File "/Library/Python/2.7/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
    self.error_handler.check_response(response)
  File "/Library/Python/2.7/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: cannot determine loading status
from unknown error: missing or invalid 'entry.level'
  (Session info: chrome=84.0.4147.125)
  (Driver info: chromedriver=2.28.455517 (2c6d2707d8ea850c862f04ac066724273981e88f),platform=Mac OS X 10.14.1 x86_64)

二、解决方法

  根据报错信息,选择合适的selenium即可,这里选择84.0.4147.30版本的chromedriver,如下

三、参考文章
  1、http://chromedriver.storage.googleapis.com/index.html
  2、http://chromedriver.storage.googleapis.com/index.html


注意:本文归作者所有,未经作者允许,不得转载

全部评论: 0

    我有话说: