Nov-19-2017, 01:02 PM
I have this snippet of code that delays the script from moving forward until images are done uploading to a website.
WebDriverWait(driver, 20).until(EC.visibility_of_element_located((By.XPATH, '//DIV[@class="spinner animation"]'))) WebDriverWait(driver, 20).until(EC.invisibility_of_element_located((By.XPATH, '//DIV[@class="spinner animation"]')))What settings would you guys use? Is there any better option than a fixed time(driver, 20)? I've been playing around with the settings but it doesn't really run smoothly.