-
-
Notifications
You must be signed in to change notification settings - Fork 8.6k
Closed
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-javaJava BindingsJava BindingsI-enhancementSomething could be betterSomething could be better
Description
Description
Modern web applications are often SPAs with dynamic content loaded via AJAX.
Selenium's current ExpectedConditions are limited to basic visibility, presence, and text checks, which often leads to flaky tests.
Have you considered any alternatives or workarounds?
Introduce a new helper wrapper class EnhancedExpectedConditions
in Java to provide SPA-aware waits:
- domReady() β waits for document.readyState == "complete" or staus change for buttons from disabled -> active.
- ajaxRequestsComplete() β waits until all jQuery AJAX requests are done
- elementHasClass(WebElement, String) β waits until an element has a specific class
- elementTextMatches(WebElement, String regex) β waits until element text matches regex
- attributeToContain(WebElement, String attribute, String substring) β waits until an element's attribute contains a substring
Metadata
Metadata
Assignees
Labels
A-needs-triagingA Selenium member will evaluate this soon!A Selenium member will evaluate this soon!C-javaJava BindingsJava BindingsI-enhancementSomething could be betterSomething could be better