Selenium Grid
You can use WebdriverIO with your existing Selenium Grid instance. To connect your tests to Selenium Grid, you just need to update the options in your test runner configurations.
Here is a code snippet from sample wdio.conf.ts.
export const config: Options.Testrunner = {
// ...
protocol: 'https',
hostname: 'yourseleniumgridhost.yourdomain.com',
port: 443,
path: '/wd/hub',
// ...
}
You need to provide the appropriate values for the protocol, hostname, port, and path based on your Selenium Grid setup. If you are running Selenium Grid on the same machine as your test scripts, here are some typical options:
export const config: Options.Testrunner = {
// ...
protocol: 'http',
hostname: 'localhost',
port: 4444,
path: '/wd/hub',
// ...
}