-
-
Notifications
You must be signed in to change notification settings - Fork 58
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
feat: Determine chromedriver version from the /status API output #456
Conversation
Linking appium/appium#20924 |
await this.jwproxy.command('/session', 'POST', sessionCaps) | ||
); | ||
this.log.prefix = generateLogPrefix(this, this.jwproxy.sessionId); | ||
this.changeState(Chromedriver.STATE_ONLINE); | ||
return capabilities; | ||
return _.has(response, 'capabilities') ? response.capabilities : response; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
left a comment about msedge specific option name (current chromeOptions is also fine for them), otherwise lg 👍
const chromeOptions = getCapValue(this.capabilities, 'chromeOptions', {}); | ||
if (chromeOptions.w3c === false) { | ||
const isOperaDriver = _.includes(this._onlineStatus?.message, 'OperaDriver'); | ||
const chromeOptions = getCapValue(this.capabilities, 'chromeOptions'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Do you think it would be nice to add ms:edgeOptions
for MSEdge as well?
MSEdge supports chormeOptions
naming still, so I don't have any strong opinion for this. I don't remember well, but probably edge prior edgeOptions than chormeOptions
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
edgeOptions map does not contain the w3c
flag, so I assume this logic could remain unchanged for now: https://learn.microsoft.com/de-de/microsoft-edge/webdriver-chromium/capabilities-edge-options
## [7.0.0](v6.1.16...v7.0.0) (2025-01-24) ### ⚠ BREAKING CHANGES * The detectWebDriverProtocol method of the Chromedriver class has been removed * The desiredProtocol property of the Chromedriver class has been renamed to _desiredProtocol * The driverVersion property of the Chromedriver has been changed to a getter ### Features * Determine chromedriver version from the /status API output ([#456](#456)) ([797c8cc](797c8cc))
🎉 This PR is included in version 7.0.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
BREAKING CHANGE: The
detectWebDriverProtocol
method of the Chromedriver class has been removedBREAKING CHANGE: The
desiredProtocol
property of the Chromedriver class has been renamed to_desiredProtocol
BREAKING CHANGE: The
driverVersion
property of the Chromedriver has been changed to a getter