I am trying to wait until an element is invisible on the screen of my mobile iOS device; however it’s not consistent. It’s not even waiting the whole time to wait that I’ve set it to (like I’ve tried with range of time to wait 35-75 seconds; however wait.until returns in like 15-20 sec and doesn’t wait the whole set time). Any ideas? Thanks!
wait = WebDriverWait(self.driver, time_to_wait)
element = wait.until(EC.invisibility_of_element_located((find_by, element)))
Log:
2019-01-08 18:24:26,145
Element is: <appium.webdriver.webelement.WebElement (session=“2d54818e-26ee-41d8-ba91-e7fdf481005a”, element=“4C000000-0000-0000-24F7-000000000000”)>
2019-01-08 18:24:41,864:ERROR:XXXXX_APP:Message: Element ‘<appium.webdriver.webelement.WebElement (session=“2d54818e-26ee-41d8-ba91-e7fdf481005a”, element=“4C000000-0000-0000-24F7-000000000000”)>’ was still present after 75 seconds.