Skip to content

Commit

Permalink
fix: config path without selenium (#4184)
Browse files Browse the repository at this point in the history
  • Loading branch information
kobenguyent authored Feb 8, 2024
1 parent eb1125b commit 4543e05
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/helper/WebDriver.js
Original file line number Diff line number Diff line change
Expand Up @@ -497,8 +497,9 @@ class WebDriver extends Helper {
if (config.host) {
// webdriverio spec
config.hostname = config.host;
config.path = '/wd/hub';
config.path = config.path ? config.path : '/wd/hub';
}

config.baseUrl = config.url || config.baseUrl;
if (config.desiredCapabilities && Object.keys(config.desiredCapabilities).length) {
config.capabilities = config.desiredCapabilities;
Expand Down

0 comments on commit 4543e05

Please sign in to comment.