Why does the program always open http://--port=57883/ using IEDriverServer IE through Selenium Python Why does the program always open http://--port=57883/ using IEDriverServer IE through Selenium Python selenium selenium

Why does the program always open http://--port=57883/ using IEDriverServer IE through Selenium Python


executable_path

executable_path is the parameter through which users can pass the absolute path of the IEDriverServer binary overriding the system path of IEDriverServer binary to be used to initiate an IE session.

So while invoking the Key executable_path, instead of passing the absolute path of the iexplore.exe you need to pass the absolute path of the IEDriverServer.exe as follows:

browser = webdriver.Ie(executable_path=r'C:\\Utility\\BrowserDrivers\\IEDriverServer.exe')


get() method must have the protocol in url. So you should change:

url = 'www.google.com'

to:

url = 'http://www.google.com'