我是靠谱客的博主 大意香烟,这篇文章主要介绍Python+Selenium运行报错call function result missing 'value',或浏览器打开空白提示DataXXX,现在分享给大家,希望可以做个参考。
报错信息如下:
Traceback (most recent call last):
File "test.py", line 62, in <module>
basePage.login()
File "../common.py", line 206, in login
self.driver.set_window_size(width, height)
File "/home/liuhong/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 1095, in set_window_size
'windowHandle': windowHandle})
File "/home/liuhong/.local/lib/python3.5/site-packages/selenium/webdriver/remote/webdriver.py", line 321, in execute
self.error_handler.check_response(response)
File "/home/liuhong/.local/lib/python3.5/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: call function result missing 'value'
(Session info: chrome=74.0.3729.169)
(Driver info: chromedriver=2.26.436382 (70eb799287ce4c2208441fc057053a5b07ceabac),platform=Linux 4.10.0-28-generic x86_64)
问题原因:Chrome跟ChromeDriver版本不兼容
解决方法:
参考https://blog.csdn.net/BinGISer/article/details/88559532更新对应的ChromeDriver 版本
最后
以上就是大意香烟最近收集整理的关于Python+Selenium运行报错call function result missing 'value',或浏览器打开空白提示DataXXX的全部内容,更多相关Python+Selenium运行报错call内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复