硒和IE

时间:2018-05-30 02:56:07

标签: python selenium internet-explorer

我怎样才能使这个工作。 我无法让IE在python上使用selenium。我收到以下错误

Traceback (most recent call last):   File "iedriver.py", line 2, in <module>
driver = webdriver.Ie("C:\Python27\IEDriverServer.exe")   File "C:\Python27\lib\site-packages\selenium\webdriver\ie\webdriver.py", line 55, in __init__
desired_capabilities=capabilities)   File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 91, in __init__
self.start_session(desired_capabilities, browser_profile)   File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 173, in start_session
'desiredCapabilities': desired_capabilities,   File "C:\Python27\lib\site-packages\selenium\webdriver\remote\webdriver.py", line 233, in execute
self.error_handler.check_response(response)   File "C:\Python27\lib\site-packages\selenium\webdriver\remote\errorhandler.py", line 106, in check_response
status = value["status"] KeyError: 'status' 

下面是我的代码和其他详细信息:

from selenium import webdriver
driver = webdriver.Ie("C:\Python27\IEDriverServer.exe")

IEDriverServer我有32位版本3.9 Windows 8

Selenium 2.53.2

1 个答案:

答案 0 :(得分:0)

如果您遇到任何意外错误,请先确保所有内容都最新

这里更新了selenium。