Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

More robust downstream CI test using selenium #398

Closed
unkcpz opened this issue Nov 28, 2022 · 1 comment
Closed

More robust downstream CI test using selenium #398

unkcpz opened this issue Nov 28, 2022 · 1 comment

Comments

@unkcpz
Copy link
Member

unkcpz commented Nov 28, 2022

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

try:
    element_present = EC.presence_of_element_located((By.ID, 'element_id'))
    WebDriverWait(driver, timeout).until(element_present)
except TimeoutException:
    print "Timed out waiting for page to load"
@danielhollas
Copy link
Contributor

@unkcpz I believe this one can be closed. The find_element selenium method waits implicitly so the solution from the OP is not needed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants