Skip to content

Commit

Permalink
Adding WebDriverManager.chromedriver().setup();
Browse files Browse the repository at this point in the history
  • Loading branch information
augustocristian committed Aug 3, 2024
1 parent 53cbbb2 commit f746f98
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);
}

Expand Down Expand Up @@ -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
Expand All @@ -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,
Expand Down

0 comments on commit f746f98

Please sign in to comment.