sbabcoc / Selenium-Foundation

Selenium Foundation is an automation framework designed to extend and enhance the capabilities provided by Selenium (WebDriver).
Apache License 2.0
60 stars 16 forks source link

For drivers that require explicit specification of binary location, scan the PATH if System property is unspecified #220

Closed sbabcoc closed 2 years ago

sbabcoc commented 2 years ago

Several of the browser drivers require explicit specification of the path to the driver binary. If this path is unspecified, the driver will fail with an error indicating the omission. It would be extremely easy for Selenium Foundation to check the associated System property and make an attempt to provide a value if it's unspecified.

This would be accomplished via the BinaryFinder.findBinary() method. This scans the PATH to determine if the specified executable can be found. If the search is successful, store the returned value in the driver-specific binary path property.

sbabcoc commented 2 years ago

Resolved by #221