selenium 之前打开网页好好的,突然遇到 Timed out receiving message from renderer
我尝试打开百度www.baidu.com,没有问题。但是打开我要测试的网页时,出现了问题:
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/yangoWebTest/utils/Run.py", line 29, in __init__
self.driver.get(self.base_url)
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 333, in get
self.execute(Command.GET, {'url': url})
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "C:\Users\Administrator\AppData\Roaming\Python\Python38\site-packages\selenium\webdriver\remote\errorhandler.py", line 242, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message: timeout: Timed out receiving message from renderer: 19.777
(Session info: chrome=86.0.4240.111)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "C:/Users/Administrator/PycharmProjects/yangoWebTest/utils/Run.py", line 39, in <module>
run = Run()
File "C:/Users/Administrator/PycharmProjects/yangoWebTest/utils/Run.py", line 33, in __init__
raise Exception
Exception
之前试过很多次,都没有出现过这个问题,但是现在突然打不开了这个url了,是出了什么问题呢?
补充:手动可打开上面的网页,但是自动测试就会超时,虽然说将等待加载时长加长之后最终会打开,但是还是会影响测试,不像之前那么顺畅了
https://testerhome.com/topics/25952 看下这个吧 估计被反爬了 这是Driver内部的通讯超时了 检查一下driver和浏览器的版本是否匹配 或者浏览器是不是自动升级了 哪一步分通讯有问题
页:
[1]