Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
_createSession() {
const config = this._config;
const gridUri = new URI(config.gridUrl);
return webdriverio.remote({
host: this._getGridHost(gridUri),
port: gridUri.port(),
path: gridUri.path(),
desiredCapabilities: config.desiredCapabilities,
waitforTimeout: config.waitTimeout,
logLevel: this._debug ? 'verbose' : 'error',
coloredLogs: true,
screenshotPath: config.screenshotPath,
connectionRetryTimeout: config.httpTimeout,
connectionRetryCount: 0, // hermione has its own advanced retries
baseUrl: config.baseUrl
});
}