FjolleJagt / kbhff_selenium_tests

2 stars 1 forks source link

Replace `WebDriverWait` #22

Open cleborys opened 5 years ago

cleborys commented 5 years ago

by something that gives a more meaningful error message than TimeoutException.

I don't want to put every WebDriverWait in a try block, rather have a wait_for_element_by_id(driver, id) function or even driver.wait_for_element_by_id(id) that throws UnexpectedLayoutError`

cleborys commented 5 years ago

This is partly solved by introducing waitUntil for retries.