Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

how to wait for loading icon to disappear from the page using selenium python

try:
  i = 0
  while(True):
    element = webDriverWait(driver, enter_number_of_seconds_to_wait).until(EC.visibility_of_element_located((By.XPATH, "ENTER_XPATH_HERE")))
    print("{} True".format(i))
    i += 1
except selenium.common.exceptions.TimeoutException:
  print("False")
 
PREVIOUS NEXT
Tagged: #wait #loading #icon #disappear #page #selenium #python
ADD COMMENT
Topic
Name
2+7 =