I had a devil of a time figuring this out. It wasn't documented on the web anywhere I could find. I ended up reading the webdriver init.py to find out.
from selenium import webdriver driver = webdriver.Ie()
Also see comment above about "Protected Mode".
Just check this,
This is how it can be done -
- Download selenium from here https://pypi.python.org/pypi/selenium
- Assuming that you are on windows use - python setup.py install
- Download IEDriverServer.exe and put it in your path
from selenium import webdriver from selenium.webdriver.common.keys import Keys driver = webdriver.Ie("C:\\Python34\\IEDriverServer.exe") //Your tests here driver.close()
"from selenium import webdriver driver = webdriver.Ie()"
Eclipse is telling me that "the method IE is undefined for the type WebDriver"