Skip to content

Commit e8a49e9

Browse files
committed
fix: test execution not working on BS without /wd/hub.
1 parent 5263573 commit e8a49e9

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

source/src/main/java/org/cerberus/core/engine/execution/impl/RobotServerService.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,6 +289,12 @@ public void startServer(TestCaseExecution execution) throws CerberusException {
289289
execution.getSession().getHostPassword(),
290290
session.getHost()),
291291
session.getPort()));
292+
293+
//Even if /wd/hub is not the standard anymore with Selenium 4, BS still continue to use it.
294+
if (execution.getRobotProvider().equals(TestCaseExecution.ROBOTPROVIDER_BROWSERSTACK)) {
295+
hubUrl += "/wd/hub";
296+
}
297+
292298
LOG.debug("Hub URL :{}", hubUrl);
293299
URL url = new URL(hubUrl);
294300

0 commit comments

Comments
 (0)