is_element_not_present_by_* are slow
is_element_not_present_by_* set of functions are waiting for timeout regardless whether element is present or not. There is a waiting loop in BaseWebDriver.is_element_not_present() that is waiting for negative condition and later in BaseWebDriver.find_by() down in traceback that is waiting for positive condition.
This creates hudnreds of requests to webdriver during wait for condition that is actually satisfied immediately.
We can improve it addind a sleep inside the is_element_not_present loop: https://github.com/cobrateam/splinter/blob/master/splinter/driver/webdriver/init.py#L85
Hm, can you elaborate? That loop in is_element_not_present() actually executes only once if element is not on the page (that is asserted in test). All the waiting takes place in a loop in find_by() (https://github.com/cobrateam/splinter/blob/master/splinter/driver/webdriver/init.py#L196), that waits until the element will appear (and that is not expected).
How would sleep in is_element_not_present() help here?
I am facing this question, too. But i use the function in selenium instead to solve this question, like use the find_element_by_xxx in the try/except. it is really fast.
@andrewsmedina This issue has been fixed in 0.13.0. is_element_not_present and is_element_not_visible return the moment the element is not present/visible, instead of retrying.