For Windows 7 and IEDRIVER with Python Selenium, terminating the Windows command prompt and restarting it cured my problem.
I am having problems with find_element..clicks. They took 30 seconds plus a bit. Here's the type of code I have, including capturing, how long to work.
timeStamp = time.time() elem = driver.find_element_by_css_selector(clickDown).click() print("1 took:",time.time() - timeStamp) timeStamp = time.time() elem = driver.find_element_by_id("cSelect32").click() print("2 took:",time.time() - timeStamp)
It was a record of about 31 seconds for each click. After finishing the command line and restarting it (which ends any IEDRIVERSERVER.exe processes), it was 1 second per click.
user3002067
source share