Selenium 2.53.5 httplib.BadStatusLine: #39;#39; Python(Selenium 2.53.5 httplib.BadStatusLine: Python)
问题描述
我正在尝试使用 Python 2.7 中的 Selenium 2.53.5 以在线形式自动注册序列号.该脚本已经运行了两个多月,但是昨天我开始运行它时开始收到错误:httplib.BadStatusLine: ''.有什么已知的解决方法吗?我读过前导/尾随换行符可能会弄乱 url 的检索,但我似乎无法确定问题所在.
Im trying to automate the registration of serial numbers in an online form using Selenium 2.53.5 in Python 2.7. The script has been working for 2+ months, but yesterday I started receiving an error right when I go to run it: httplib.BadStatusLine: ''. Is there any known fix for this? I've read that leading/trailing new line characters can mess up the retrieving of the url but I can't seem to identify the issue.
代码:
错误:
推荐答案
确保您使用的是最新版本的chromedriver:http://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip
Make sure your using the latest version chromedriver: http://chromedriver.storage.googleapis.com/2.25/chromedriver_linux64.zip
我安装了 chromedriver 2.0 出现了这个错误,
I installed chromedriver 2.0 and got this error,
当我升级到 2.25 时,它消除了这个错误.
when I upgraded to 2.25 it got rid of this error.
这篇关于Selenium 2.53.5 httplib.BadStatusLine: '' Python的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!