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

feat: Determine chromedriver version from the /status API output #456

Merged
merged 10 commits into from
Jan 24, 2025

Conversation

mykola-mokhnach
Copy link
Contributor

@mykola-mokhnach mykola-mokhnach commented Jan 23, 2025

BREAKING CHANGE: The detectWebDriverProtocol method of the Chromedriver class has been removed
BREAKING 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

@mykola-mokhnach mykola-mokhnach marked this pull request as ready for review January 23, 2025 11:44
@mykola-mokhnach
Copy link
Contributor Author

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;
Copy link
Member

Choose a reason for hiding this comment

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

👍

Copy link
Member

@KazuCocoa KazuCocoa left a 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');
Copy link
Member

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

Copy link
Contributor Author

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

@mykola-mokhnach mykola-mokhnach merged commit 797c8cc into master Jan 24, 2025
10 checks passed
@mykola-mokhnach mykola-mokhnach deleted the operadrv branch January 24, 2025 10:26
github-actions bot pushed a commit that referenced this pull request Jan 24, 2025
## [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))
Copy link
Contributor

🎉 This PR is included in version 7.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants