Repository navigation
Conversation
The Java and JavaScript tabs on the Expected Conditions page showed placeholders, and ExpectedConditionsTest.java was an empty stub. Both now hold a test that waits for a revealed element with an expected condition, like the Python example, and the page renders them in all translations.
👷 Deploy request for selenium-dev pending review.Visit the deploys page to approve it
|
Qodo reviews are paused for this user.Troubleshooting steps vary by plan Learn more → On a Teams plan? Using GitHub Enterprise Server, GitLab Self-Managed, or Bitbucket Data Center? |
|
@Mohsintl , please see two tests are failing. Check the error logs - |
|
Thanks for checking! The failing test is NetworkCommandsTest.canContinueWithoutAuthCredentials (BiDi), which this PR doesn't touch. It also fails on trunk without these changes, for example in this trunk (run). The new ExpectedConditionsTest passed on Windows stable, Windows nightly and Ubuntu stable. The Ubuntu nightly test step exited with no output in its log, so I can't tell what failed there. Could you re-run the failed jobs? |
|
@Mohsintl , a feedback and request, try to make small PRs. pick one language and provide the missing example code and update the gh code block lines. for example in this you are attempting both Java and JS. |
|
The Windows job failed in Run Tests Stable (in Maven): NetworkCommandsTest.canContinueWithoutAuthCredentials errored on all four attempts. The key error was: getPageSource() returned null, so the test’s .contains(...) call threw a NullPointerException. This points to a test or application behavior issue rather than a runner setup failure. Please see and verify. thanks |
|
Thanks for the feedback! I'll keep future PRs small, one language each. Good question about the error. This test is flaky and not related to my changes: AutomatedTester confirmed on #3000 that NetworkCommandsTest.canContinueWithoutAuthCredentials also fails on trunk and on other open PRs, and this PR doesn't touch it. If it helps, I'd be happy to dig into the flaky test in a separate small PR. |
|
@SeleniumHQ/selenium-tlc please see. |
Thanks for contributing to the Selenium site and documentation!
A PR well described will help maintainers to review and merge it quickly
Description
Part of #2890. The Expected Conditions page showed "add example" in the Java and JavaScript tabs, and
ExpectedConditionsTest.javawas an empty stub.examples/java/src/test/java/dev/selenium/support/ExpectedConditionsTest.java): waits withExpectedConditions.visibilityOfElementLocated.examples/javascript/test/support/expectedConditions.spec.js, new): waits withuntil.elementIsVisible.dynamic.html, click Reveal, wait for the revealed input, type into it and assert the value, so a broken example fails CI.en,ja,pt-brandzh-cnfiles. Kotlin keeps its placeholder.Motivation and Context
#2890 asks to complete the examples for the pages in
llms.txt; the Expected Conditions page is one of them.Types of changes
Checklist
I ran both tests locally with Chrome: the Java test with Maven (1/1) and the JavaScript test with mocha (1/1). I did not render the site with Hugo locally; I'll check the Netlify preview.