Skip to content

Commit 4543e05

Browse files
authored
fix: config path without selenium (#4184)
1 parent eb1125b commit 4543e05

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/helper/WebDriver.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -497,8 +497,9 @@ class WebDriver extends Helper {
497497
if (config.host) {
498498
// webdriverio spec
499499
config.hostname = config.host;
500-
config.path = '/wd/hub';
500+
config.path = config.path ? config.path : '/wd/hub';
501501
}
502+
502503
config.baseUrl = config.url || config.baseUrl;
503504
if (config.desiredCapabilities && Object.keys(config.desiredCapabilities).length) {
504505
config.capabilities = config.desiredCapabilities;

0 commit comments

Comments
 (0)