Skip to content

[🐛 Bug]: SE_SAFARIDRIVER is not respected in the java bindings or selenium-manager #15849

Closed
@ShinySaana

Description

@ShinySaana

Description

I am trying to override /usr/bin/safaridriver as the safaridriver location, through a Grid Node. It seems ignored during my testing, and I cannot see a codepath that would allow it to be set through this env variable. To the contrary, I see it hardcoded in:

If SE_SAFARIDRIVER is respected in python and ruby, why not in java or in selenium-manager?

Reproducible Code

# sh
SE_SAFARIDRIVER=/some/thing "$JAVA_HOME/bin/java" -jar selenium-server.jar node --log-level FINER

# py
safari_options = webdriver.SafariOptions()

driver = webdriver.Remote(
   command_executor="http://localhost:5555",
   options=safari_options
)
driver.get("https://www.google.com")


## The logs should show /usr/bin/safaridriver being used instead of /some/thing

Metadata

Metadata

Assignees

No one assigned

    Labels

    G-safaridriverRequires fixes in SafariDriver

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions