Seeking assistance with creating separate configuration files for Chrome, Firefox, and Microsoft Edge drivers on webdriver.io (version 7.19.3). Struggling to configure the Microsoft Edge driver on a Windows 10 machine while maintaining the main wdio.conf.js file with only general settings.
Attempted configurations:
exports.config = merge(wdioConf.config, {
capabilities: [
{
maxInstances: 1,
browserName: 'MicrosoftEdge',
osPlatform: 'Windows',
osVersion: '10',
acceptInsecureCerts: true,
},
],
baseUrl: 'https://some.site.for.testing,
waitforTimeout: 10000,
connectionRetryCount: 3,
services: ['selenium-standalone'],
seleniumArgs: {
javaArgs: [
'-Dwebdriver.edge.driver=path.join(__dirname, "./node_modules/selenium-standalone/.selenium/edgedriver/17134/MicrosoftEdgeDriver.exe")'
]
}
});
Another attempted configuration:
exports.config = merge(wdioConf.config, {
capabilities: [
{
maxInstances: 1,
browserName: 'msedge',
acceptInsecureCerts: true,
},
],
baseUrl: 'https://some.site.for.testing',
waitforTimeout: 10000,
connectionRetryCount: 3,
services: [['selenium-standalone', { drivers: { msedge: 'latest' } }]],
});
Both attempts were unsuccessful, resulting in "missing configuration" or the runner getting stuck when running the command
npx wdio run config/wdio.edge.conf.js
.
Tests run smoothly with FF and Chrome:
npx wdio run config/wdio.chrome.conf.js
Any help would be greatly appreciated. Thank you!