ARTEMIS-4229 Upgrade selenium version to 4.8.3
This commit is contained in:
parent
71408296c9
commit
ff87b9c5cb
|
@ -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>
|
||||
|
||||
|
|
|
@ -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 -> {
|
||||
|
|
|
@ -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));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue