From f746f98b2a2da1e5f093017fae0a985d9c48a83f Mon Sep 17 00:00:00 2001 From: Augusto Date: Sat, 3 Aug 2024 16:30:27 +0200 Subject: [PATCH] Adding WebDriverManager.chromedriver().setup(); --- .../e2e/no_elastest/common/BaseLoggedTest.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java b/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java index 9964ef3..0ef3538 100644 --- a/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java +++ b/src/test/java/com/fullteaching/e2e/no_elastest/common/BaseLoggedTest.java @@ -4,6 +4,7 @@ import com.fullteaching.e2e.no_elastest.common.exception.NotLoggedException; import com.fullteaching.e2e.no_elastest.utils.Click; import com.fullteaching.e2e.no_elastest.utils.Wait; +import io.github.bonigarcia.wdm.WebDriverManager; import org.junit.jupiter.api.*; import org.openqa.selenium.By; import org.openqa.selenium.TimeoutException; @@ -87,6 +88,11 @@ static void setupAll() { // 28 lines TEACHER_BROWSER = (TEACHER_BROWSER == null || !TEACHER_BROWSER.equals(FIREFOX)) ? CHROME : TEACHER_BROWSER; STUDENT_BROWSER = (STUDENT_BROWSER == null || !STUDENT_BROWSER.equals(FIREFOX)) ? CHROME : STUDENT_BROWSER; + // Doing the setup of the driver as indicated in the WebDriverManagerDocs + WebDriverManager.chromedriver().setup(); + + + log.info("Using URL {} to connect to OpenVidu-app", APP_URL); } @@ -295,7 +301,7 @@ protected void openDialog(String cssSelector, BrowserUser user) { "//div[contains(@class, 'modal-overlay') and contains(@style, 'opacity: 0.5')]")), "Dialog not opened"); - log.info("Dialog opened for user {}", user.getClientData()); + log.info("Dialog opened using CSS Selector for user {}", user.getClientData()); } protected void openDialog(WebElement el, BrowserUser user) {//8lines @@ -307,7 +313,7 @@ protected void openDialog(WebElement el, BrowserUser user) {//8lines user.waitUntil(ExpectedConditions.presenceOfElementLocated(By.xpath( "//div[contains(@class, 'modal-overlay') and contains(@style, 'opacity: 0.5')]")), "Dialog not opened"); - log.info("Dialog opened for user {}", user.getClientData()); + log.info("Dialog opened for user using the web element {}", user.getClientData()); } protected void waitForDialogClosed(String dialogId, String errorMessage,