Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[js] do not need browser version if Selenium is managing it #12641

Closed
wants to merge 1 commit into from

Conversation

titusfortner
Copy link
Member

JS fix equivalent to #12639

@titusfortner titusfortner requested a review from harsha509 August 30, 2023 15:02
@@ -70,7 +70,8 @@ function driverLocation(options) {
let args = ['--browser', options.getBrowserName(), '--output', 'json']

if (options.getBrowserVersion() && options.getBrowserVersion() !== '') {
args.push('--browser-version', options.getBrowserVersion())
args.push('--browser-version', options.getBrowserVersion());
options.setBrowserVersion("");
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

GeckoDriver still rejects an empty browser version. Have you checked if the key is still sent?

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hi @titusfortner , @diemol ,

Looking into the implementation of other bindings, it appears that we should nullify the browser version once we have determined the driver path right?

If yes below should work!

  // Once driverPath is available, set browserVersion to null
  if (output.result.driver_path) {
    options.setBrowserVersion(null);
  }

@harsha509
Copy link
Member

Updated the above with commit 1c036ab!

closing this PR as suggested by @titusfortner !

@harsha509 harsha509 closed this Aug 30, 2023
@titusfortner
Copy link
Member Author

Thanks @harsha509 !

@titusfortner titusfortner deleted the js_bversion branch November 5, 2023 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants