I have a very complex py.test
script that uses selenium to test a non-public webpage. In that test script I have the following code:
wait = WebDriverWait(driver, 1)
result = wait.until(EC.element_to_be_clickable(('xpath', "//span[contains(text(), 'Start simulation')]/..")))
According to the documentation (or here), I expect that piece of code to 'wait' for a maximum of 1 second. However, it is stuck there for about 256 seconds!
Why is that? How can that happen?
Versioning information:
- pytest==3.6.1
- selenium==3.14.1