My environment: Python 3.6.0
Selenium 3.3.1
IEDriverServer_x64_3.8.0
IE11
from selenium import web driver
Driver=we driver.Ie(‘C:\Program File\IE\IEDriverServer.exe’)
Driver.get(‘https://www.google.com’)
Then there is a error like this:
(So sorry that I can’t use my cellphone to input all these words in error , so I get a screen shot...😂🤣)
But when I use IEDriverServer_X64_3.4.0,It works well! it really puzzled me,please help:How can I use the newest IEDRIVERSERVER?
In your code block you have used ’
instead of '
driver = webdriver.Ie(’C:\Program Files\Internet Explorer\IEDriverServer.exe’)
This error can come from coping text from other source and paste into scripts.
Replace ’
with '
and add the r
switch and argument type executable_path
as follows:
driver = webdriver.Ie(executable_path=r'C:\path\to\IEDriverServer.exe')
Additionally, to maintain compatibility between the binaries, if you are using the Selenium client of version 3.x.y try to use IEDriverServer.exe of version 3.x.y.z only. So as you are using Selenium 3.3.1 use the IEDriverServer.exe v3.3.x only.
Ensure that you are using the correct binaries of effective architecture. IEDriverServer_Win32_3.8.0 can be used in place of IEDriverServer_x64_3.8.0 but not the vice-versa.