You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, in selenium test we wait 5 seconds and expect that the page will loaded, but not always the case. The selenium provide the check that the web element appear or disappear. We can using the gear logo to show that the page is still loading.
try:
element_present=EC.presence_of_element_located((By.ID, 'element_id'))
WebDriverWait(driver, timeout).until(element_present)
exceptTimeoutException:
print"Timed out waiting for page to load"
The text was updated successfully, but these errors were encountered:
Currently, in selenium test we wait 5 seconds and expect that the page will loaded, but not always the case. The selenium provide the check that the web element appear or disappear. We can using the gear logo to show that the page is still loading.
As indicated by:
https://stackoverflow.com/questions/68949169/python-selenium-how-to-wait-until-element-is-gone-becomes-stale
The text was updated successfully, but these errors were encountered: