Authentication with WebdriverIO
Authentication can be done either with a username and password or with an accessKey.
The username and password or accessKey can either be passed as part of the capabilities.
warning
Since WebDriverIO version 7.0.0, authentication is possible with access key only
Capabilities authentication
For username and password, use the following convention:
wdio.conf.js
exports.config = {
......
capabilities: [{
username : <cloudUsername>,
password : <cloudPassword>,
projectName : <cloudProject>,
.....
}],
...
}
For accessKey, use the following convention:
wdio.conf.js
exports.config = {
......
capabilities: [{
'experitest:accessKey' : <accessKey>,
.....
}],
...
}