Skip to content

--driver-version="keep" is only being applied to drivers in the seleniumbase/drivers folder #2136

Closed
@mdmintz

Description

@mdmintz

--driver-version="keep" is only being applied to drivers in the seleniumbase/drivers folder

It should also be applied to drivers that exist on the System PATH.

The current bug example: Setup: Chrome 117 was installed, with no driver in the seleniumbase/drivers folder, but chromedriver 115 on System PATH. What happened: chromedriver 115 was downloaded into the seleniumbase/drivers folder and used. What was expected: SeleniumBase should have just used the existing chromedriver 115 that was already on the System PATH.


An explanation of how --driver-version="keep" is supposed to work:

If there's a already a driver in the seleniumbase/drivers folder, (or there's one on your System PATH), then SeleniumBase should use that driver for tests, even if the browser version does not match the driver version. Eg. If Chrome 117 is installed, but you have chromedriver 115, then SeleniumBase should keep using that existing chromedriver 115, rather than downloading chromedriver 117 to match your browser (which is the default behavior).

(NOTE that for some Syntax Formats, the driver version is passed via method arg: driver_version="VERSION")

Metadata

Metadata

Assignees

Labels

bugUh oh... Something needs to be fixed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions