I have created a python script that I can execute and does exactly what I want under the Google Chromedriver. However, to make sure that my executable can work on all PCs, I would like to have my script work with the internet explorer driver but I am having issues. I have attached a sample test code I am trying to run below along with the error message I am receiving.
from selenium import webdriver
driver = webdriver.Ie()
driver.get("google.com")
And the error code I am receiving is:
selenium.common.exceptions.WebDriverException: Message: Unexpected error
launching Internet Explorer. IELaunchURL() returned HRESULT 800700C1 ('%1 is
not a valid Win32 application.') for URL 'http://localhost:58689/'
Any ideas? I have installed the IEdriver and placed it on my desktop along with the test.py file I mentioned above.