Simple question:
What is the exact difference between those two statements:
WebDriverWait(self._driver, WEB_WAIT_TIMEOUT).until(ec.invisibility_of_element_located(element))
and
WebDriverWait(self._driver, WEB_WAIT_TIMEOUT).until_not(ec.presence_of_element_located(element))
In both cases, selenium behavior is the same in my situation. Thanks in advance
Thanks for responses Ok but there are still things I dont understand: I've got basic function that checks if spinner is not visible.
`def wait_until_request_api_process_finished(self):
try:
WebDriverWait(self._driver, 1).until(ec.visibility_of_element_located(BaseLoc.spinner))
WebDriverWait(self._driver, 10).until(ec.invisibility_of_element_located(BaseLoc.spinner))
except TimeoutException:
pass
But, even if the spinner is not visible, selenium waits (about 8 seconds more than expected). What's the issue?