Skip to content

[java] DriverFinderTest property fixture doesn't clear/restore selenium.webdriver.verbose #17836

Closed as not planned

Description

@MohabMohie

Motivation

Follow-up to #17832/#17833. That PR's round-2 review pass fixed the identical fixture-hygiene gap (test setup only saving/clearing selenium.debug, not its legacy alias selenium.webdriver.verbose) in LoggingOptionsTest.java, RemoteWebDriverInitializationTest.java, and RetryRequestTest.java.

java/test/org/openqa/selenium/remote/service/DriverFinderTest.java:81-100 has the same gap: its property save/restore only handles selenium.debug, so a JVM with selenium.webdriver.verbose set externally could leak state across tests in this file. It was out of scope for the round-2 coder (not in the original findings list) so it's tracked here rather than fixed silently.

Suggested fix

Mirror the fixture pattern already applied to the three files above: save both properties before the test, clear both, restore both after.

Context

Umbrella tracker: #17833

Activity

  1. stefanpoia commented on Oct 22, 2026

    @stefanpoia

    Hi Selenium team,

    I would like to work on this issue as a new contributor.

    I have experience with Java, Selenium WebDriver, and automated testing. I understand that DriverFinderTest needs to save, clear, and restore both selenium.debug and selenium.webdriver.verbose to prevent state leakage between tests.

    Is this issue available for contribution?

    Thank you!

  2. titusfortner commented on Oct 29, 2026

    @titusfortner
    Member

    If there's not a PR opened for this already, it's available to work on, thanks!

  3. MohabMohie commented on Nov 13, 2026

    @MohabMohie
    ContributorAuthor

    Status on 2026-11-13: this issue stays open. Titus Fortner said on 2026-10-29 that it is available if no pull request is open. I do not have a pull request for the DriverFinderTest property fixture, and I am leaving it for a contributor who picks it up. #18254 and the open remaining-fine pull request #18295 do not change this test.

  4. MohabMohie commented on Nov 20, 2026

    @MohabMohie
    ContributorAuthor

    DriverFinderTest on trunk does not read or write selenium.debug or selenium.webdriver.verbose. The save/restore described at lines 81-100 is on the unmerged head of #17832 (f8129c5), not on trunk. On the 2026-06-26 trunk revision of this file, those lines are systemPropertyIgnoresSeleniumManager, which sets property.ignores.selenium.manager.

    @titusfortner marked this available on 2026-10-29 from the issue text, and @stefanpoia offered to take it. A pull request that adds a save/restore for properties this test does not set would be unused. Please do not open that pull request.

    The umbrella tracker stays open until Debug.getDebugLogLevel() is removed.

    Prepared with Grok. Checked DriverFinderTest on trunk and at 6ea4c2345e, and the same file on #17832 at f8129c5.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions