From 55cfd03901590be6a4ec925c996dad4bad788004 Mon Sep 17 00:00:00 2001 From: MathisSenicourt Date: Tue, 14 Jan 2025 16:54:54 +0100 Subject: [PATCH] robotServerService setScriptTimeout deprecated update --- .../core/engine/execution/impl/RobotServerService.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/src/main/java/org/cerberus/core/engine/execution/impl/RobotServerService.java b/source/src/main/java/org/cerberus/core/engine/execution/impl/RobotServerService.java index 46f17abbc..37691fe53 100644 --- a/source/src/main/java/org/cerberus/core/engine/execution/impl/RobotServerService.java +++ b/source/src/main/java/org/cerberus/core/engine/execution/impl/RobotServerService.java @@ -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); } @@ -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 {}",