ARTEMIS-4229 Upgrade selenium version to 4.8.3

This commit is contained in:
Domenico Francesco Bruscino 2023-03-31 18:51:29 +02:00 committed by Robbie Gemmell
parent 71408296c9
commit ff87b9c5cb
3 changed files with 4 additions and 4 deletions

View File

@ -114,7 +114,7 @@
<dependency>
<groupId>org.seleniumhq.selenium</groupId>
<artifactId>selenium-java</artifactId>
<version>3.141.59</version>
<version>4.8.3</version>
<scope>test</scope>
</dependency>

View File

@ -156,7 +156,7 @@ public abstract class ConsoleTest extends SmokeTestBase {
// Wait for server console
WebDriverWait loadWebDriverWait = new WebDriverWait(
driver, Duration.ofMillis(30000).getSeconds());
driver, Duration.ofMillis(30000));
logger.info("Loading " + webServerUrl);
loadWebDriverWait.until((Function<WebDriver, Object>) webDriver -> {

View File

@ -55,14 +55,14 @@ public abstract class ConsolePage {
public void waitForElementToBeVisible(final By elementLocator, int timeout) {
WebDriverWait loadWebDriverWait = new WebDriverWait(
driver, Duration.ofMillis(timeout).getSeconds());
driver, Duration.ofMillis(timeout));
loadWebDriverWait.until(ExpectedConditions.visibilityOfElementLocated(elementLocator));
}
public void waitForElementToBeClickable(final By elementLocator, int timeout) {
WebDriverWait loadWebDriverWait = new WebDriverWait(
driver, Duration.ofMillis(timeout).getSeconds());
driver, Duration.ofMillis(timeout));
loadWebDriverWait.until(ExpectedConditions.elementToBeClickable(elementLocator));
}