python - unable to fetch elements from ie using selenium webdriver on WinServer 2012 -
i using selenium 2.33 iedriveserver on windows server 2012 in python.
i unable fetch element using webdriver.
for example:
from selenium import webdriver driver=webdriver.ie() driver.get('http://www.google.com') driver.find_element_by_name('q')
ie window opened fetching element not successful. getting error:
unable find element name = q
i tried find_element_by_id
different pages.
my script working on win7 , win8 not working ie10 on winserver2012
this example in java, think should work python well. got similar situation findelement xpath or id didn't work on ie9. tried using cssselector , worked great. not sure syntax python be, in java looks following, hope helps driver.findelement(by.cssselector(selector));
Comments
Post a Comment