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

[Fixit Fridays] Make webdriver helpers wait till the element exists, and use those methods in tests #4862

Merged
merged 10 commits into from
Jan 18, 2025

Conversation

gmechali
Copy link
Contributor

@gmechali gmechali commented Jan 17, 2025

Modified the base_utils find_elem and find_elems methods such that they first have to wait for the element if it's not found. This allows us to remove all that logic from within each test to check if the element exists before trying to find it.

Also fixed how the XPath is sometimes used as the entire path multiple times in the same test.

Moving forward, we should aim to always used find_elem, and find_elems to retrieve elements for webdriver tests.
Will keep working towards moving over the old tests to using this approach.

This also fixed the drought webdriver test which was previously skipped for flakiness. I expect that this will allow us to unskip many other tests as well.

@gmechali gmechali requested review from hqpho and dwnoble and removed request for hqpho January 17, 2025 22:35
@gmechali gmechali marked this pull request as ready for review January 17, 2025 22:36
@gmechali gmechali merged commit 2de4eea into datacommonsorg:master Jan 18, 2025
9 checks passed
@gmechali gmechali deleted the testcleanup branch January 24, 2025 13:55
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

Successfully merging this pull request may close these issues.

2 participants