我已經下載IEDriver和測試的32個和64位版本啓動Internet Explorer(我運行64位Windows 7),我包括含EXE在環境變量路徑的文件夾。無法通過硒webdriver的Python綁定
我已經重新啓動Eclipse和我的整個系統,但仍然得到異常
selenium.common.exceptions.WebDriverException: Message:
'IEDriver executable needs to be available in the path.
Please download from http://code.google.com/p/selenium/downloads/list
and read up at http://code.google.com/p/selenium/wiki/InternetExplorerDriver'
下面是我的測試設置啓動IE:
def setUp(self):
self.driver = webdriver.Ie()
self.driver.implicitly_wait(30)
self.base_url = "https://accounts.google.com/"
self.verificationErrors = []
self.accept_next_alert = True
我難倒。我以前曾經工作過,但刪除了它,現在想將它放回到我的系統中。我使用Python 3.3,Eclipse 4.2.2,Selenium 2.31和IE 10.0.92
任何想法?
我有它在文件夾'C:\ IEDriver'並將其添加到路徑,如圖所示。 – Keith
@Keith:你可以發佈你的PATH嗎?從命令行,'echo%path%'。 –
肯定:'C:\ Python33 \;%SystemRoot%\ system32;%SystemRoot%;%SystemRoot%\ System32 \ Wbem;%SYSTEMROOT%\ System32 \ WindowsPowerShell \ v1.0 \;%JAVA_HOME%\ bin; C:\ Program Files(x86)\ Google \ Chrome \ Application; C:\ Users \ User1 \ Downloads \ windiff; C:\ Program Files \ TortoiseSVN \ bin; C:\ IEDriver' – Keith