2016-04-15 11:46:48 |
Timur Sufiev |
description |
I found that method _execute inside horizon/tests/webdriver.py has complicated and wrong logic, that in race condition leads to long tests, for example we have tests with 10 min duration.
The core problem is in usage while True to wait element, but implicit_wait delegates its to browser already.
Just we need to catch StaleElement exception, reload chain of element parents and then to execute command again. |
I found that method _execute inside horizon/tests/webdriver.py has complicated and wrong logic, that in race condition leads to long tests, for example we have tests with 10 min duration.
The core problem is that `while True` is used to wait for an element, but `implicit_wait` delegates this to browser already.
We need just to catch StaleElementRereferenceException, reload the chain of element's parents and then execute a command again. |
|