Добрый день.
С недавнего времени начал осваивать Selenium и тут же споткнулся. Не могу понять где копать.
Система Windows 7, браузер IE 9. Версия IEDriverServer (Win32) - 2.25.3, ActivePython 2.7
Селениум установил через pip install selenium
IEDriverServer поместил в system32
Беру самый первый пример из руководства.
from selenium import webdriver from selenium.common.exceptions import TimeoutException from selenium.webdriver.support.ui import WebDriverWait # available since 2.4.0 import time# Create a new instance of the Firefox driver
driver = webdriver.Firefox()# go to the google home page
driver.get(“http://www.google.com”)# find the element that’s name attribute is q (the google search box)
inputElement = driver.find_element_by_name(“q”)# type in the search
inputElement.send_keys(“Cheese!”)# submit the form (although google automatically searches now without submitting)
inputElement.submit()# the page is ajaxy so the title is originally this:
print driver.title
Меняю webdriver.Firefox на webdriver.Ie и запускаю.
Открывается пустое окно IEDriverServer, браузер не стартует. После чего вываливаются ошибки в лог: