Skip to content

Commit

Permalink
robotServerService setScriptTimeout deprecated update
Browse files Browse the repository at this point in the history
  • Loading branch information
MathisSenicourt committed Jan 14, 2025
1 parent 16e5eb5 commit 55cfd03
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1319,7 +1319,7 @@ public void setOptionsTimeout(Session session, Integer timeout) {
LOG.debug("Setting Selenium Robot Options (pageLoadTimeout & setScriptTimeout) timeout to : {}", timeout);
WebDriver driver = session.getDriver();
driver.manage().timeouts().pageLoadTimeout(Duration.ofMillis(timeout));
driver.manage().timeouts().setScriptTimeout(Duration.ofMillis(timeout));
driver.manage().timeouts().scriptTimeout(Duration.ofMillis(timeout));
session.setCerberus_selenium_pageLoadTimeout(timeout);
session.setCerberus_selenium_setScriptTimeout(timeout);
}
Expand Down Expand Up @@ -1377,7 +1377,7 @@ public void setOptionsToDefault(Session session) {
}
if ((driver != null) && (session.getAppiumDriver() == null) && (session.getCerberus_selenium_setScriptTimeout() != session.getCerberus_selenium_setScriptTimeout_default())) {
LOG.debug("Setting Selenium Robot Options (setScriptTimeout) timeout to : {}", session.getCerberus_selenium_setScriptTimeout_default());
driver.manage().timeouts().setScriptTimeout(Duration.ofMillis(session.getCerberus_selenium_setScriptTimeout_default()));
driver.manage().timeouts().scriptTimeout(Duration.ofMillis(session.getCerberus_selenium_setScriptTimeout_default()));
session.setCerberus_selenium_setScriptTimeout(session.getCerberus_selenium_setScriptTimeout_default());
}
LOG.debug("Setting Robot highlightElement back to default values : Selenium {} Sikuli {}",
Expand Down

0 comments on commit 55cfd03

Please sign in to comment.