-
Notifications
You must be signed in to change notification settings - Fork 0
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
WRR-171: Update webdriverio to version 9 #160
base: develop
Are you sure you want to change the base?
Conversation
} | ||
} | ||
} | ||
skipSeleniumInstall: offline |
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.
Note: Since webdriverio handles driver management, I only left the offline
option active.
…of wdio dep to latest minor version
"@wdio/static-server-service": "^7.33.0", | ||
"@wdio/cli": "^9.2.12", | ||
"@wdio/dot-reporter": "^9.2.2", | ||
"@wdio/local-runner": "9.2.1", |
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.
Note: @wdio/local-runner
is set to a fixed version because of a bug introduced in version 9.2.2 and above which blocks running tests with chromedriver 120
Error: [chrome-headless-shell 120.0.6099.109 linux #0-51] waitUntil condition timed out after 10000ms
[chrome-headless-shell 120.0.6099.109 linux #0-51] Error: waitUntil condition timed out after 10000ms
debuggerAddress: `${process.env.TV_IP}:9998` | ||
} | ||
}, | ||
'wdio:enforceWebDriverClassic': true |
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.
w3c: false
enforces wdio to use JSON Wire Protocol which has been removed in version 9: https://webdriver.io/blog/2024/08/15/webdriverio-v9-release#removal-of-json-wire-protocol-commands
I have added 'wdio:enforceWebDriverClassic': true to use Webdriver Classic Protocol
Setting this value to false, wdio will use WebdriverBiDi Protocol which does not work right now with remote debugger
debuggerAddress: `${process.env.TV_IP}:9998` | ||
} | ||
}, | ||
'wdio:enforceWebDriverClassic': true |
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.
w3c: false
enforces wdio to use JSON Wire Protocol which has been removed in version 9: https://webdriver.io/blog/2024/08/15/webdriverio-v9-release#removal-of-json-wire-protocol-commands
I have added 'wdio:enforceWebDriverClassic': true to use Webdriver Classic Protocol
Setting this value to false, wdio will use WebdriverBiDi Protocol which does not work right now with remote debugger
// WebdriverIO v8.14 and above downloads and uses the latest Chrome version when running tests. | ||
// Uncomment `browserVersion` line when running ui-tests locally to match chromedriver version running in CI/CD environment. | ||
// TODO: Update this version when chromedriver version in CI/CD is updated |
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.
let's use a multiline comment for these 3 lines to differentiate real comments from commented code
Checklist
Issue Resolved / Feature Added
Updated webdriverio and its subdependencies to version 9
Resolution
Additional Considerations
Release blog: https://webdriver.io/blog/2024/08/15/webdriverio-v9-release
- Existing known bug on Chrome needs to be handled in order for this PR to be reviewed: webdriverio/webdriverio#13440@wdio/selenium-standalone-service
(https://www.npmjs.com/package/@wdio/selenium-standalone-service). As an alternative I installedwdio-selenium-standalone-service
(https://www.npmjs.com/package/wdio-selenium-standalone-service) community package.w3c: false
and replaced with 'wdio:enforceWebDriverClassic': true when running tests on a remote debugger. w3c enforces the usage of JSON Wire Protocol which has been removed from wdio v9: https://webdriver.io/blog/2024/08/15/webdriverio-v9-release#removal-of-json-wire-protocol-commandsLinks
WRR-171
Comments
Enact-DCO-1.0-Signed-off-by: Adrian Cocoara [email protected]