Skip to content

Commit

Permalink
Update Selenium 4.25.0
Browse files Browse the repository at this point in the history
  • Loading branch information
vothaian committed Sep 25, 2024
1 parent 113b99e commit e786ce9
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 17 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
v1.8.2
======
Sep 26, 2024
* Update Selenium 4.25.0

v1.8.1
======
Sep 07, 2024
Expand Down
16 changes: 4 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>com.anhtester</groupId>
<artifactId>anhtester-cucumber-testng</artifactId>
<version>1.8.1</version>
<version>1.8.2</version>
<name>TestAutomationFrameworkCucumberTestNG</name>
<url>https://github.com/anhtester/AutomationFrameworkCucumberTestNG</url>

Expand All @@ -18,10 +18,10 @@
<maven-surefire-plugin.version>3.5.0</maven-surefire-plugin.version>
<maven-compiler-plugin.version>3.13.0</maven-compiler-plugin.version>

<cucumber.java.version>7.18.1</cucumber.java.version>
<cucumber.java.version>7.19.0</cucumber.java.version>
<gherkin.version>29.0.0</gherkin.version>
<cucumber-reporting.version>5.8.2</cucumber-reporting.version>
<selenium.version>4.24.0</selenium.version>
<selenium.version>4.25.0</selenium.version>
<testng.version>7.10.2</testng.version>
<aspectjweaver.version>1.9.22.1</aspectjweaver.version>
<log4j.version>2.23.1</log4j.version>
Expand All @@ -35,13 +35,12 @@
<extentreports.version>5.1.2</extentreports.version>
<apache-poi.version>5.3.0</apache-poi.version>
<apache-poi-xml.version>5.2.5</apache-poi-xml.version>
<commons-io.version>2.16.1</commons-io.version>
<commons-io.version>2.17.0</commons-io.version>
<owner.version>1.0.12</owner.version>
<assertj.version>3.24.2</assertj.version>
<monte-screen-recorder.version>0.7.7.0</monte-screen-recorder.version>
<mysql-connector-java.version>8.0.33</mysql-connector-java.version>
<lombok.version>1.18.34</lombok.version>
<google.guava.version>33.3.0-jre</google.guava.version>
<data.supplier.version>1.9.7</data.supplier.version>
<javax.mail.version>1.6.2</javax.mail.version>
<zip.version>1.17</zip.version>
Expand Down Expand Up @@ -243,13 +242,6 @@
<version>${allure-environment-writer.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/com.google.guava/guava -->
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>${google.guava.version}</version>
</dependency>

<!-- https://mvnrepository.com/artifact/org.apache.maven.plugins/maven-compiler-plugin -->
<dependency>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
9 changes: 4 additions & 5 deletions src/main/java/com/anhtester/keywords/WebUI.java
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@
import com.anhtester.utils.BrowserInfoUtils;
import com.anhtester.utils.DateUtils;
import com.anhtester.utils.LogUtils;
import com.google.common.util.concurrent.Uninterruptibles;
import io.qameta.allure.Step;
import org.apache.commons.io.FileUtils;
import org.openqa.selenium.Dimension;
Expand All @@ -26,8 +25,8 @@
import org.openqa.selenium.chrome.ChromeOptions;
import org.openqa.selenium.devtools.DevTools;
import org.openqa.selenium.devtools.HasDevTools;
import org.openqa.selenium.devtools.v128.network.Network;
import org.openqa.selenium.devtools.v128.network.model.Headers;
import org.openqa.selenium.devtools.v129.network.Network;
import org.openqa.selenium.devtools.v129.network.model.Headers;
import org.openqa.selenium.interactions.Actions;
import org.openqa.selenium.print.PrintOptions;
import org.openqa.selenium.support.ui.ExpectedCondition;
Expand Down Expand Up @@ -380,7 +379,7 @@ public static void getToUrlAuthentication(String url, String username, String pa
devTools.createSession();

// Enable the Network domain of devtools
devTools.send(org.openqa.selenium.devtools.v126.network.Network.enable(Optional.of(100000), Optional.of(100000), Optional.of(100000)));
devTools.send(Network.enable(Optional.of(100000), Optional.of(100000), Optional.of(100000)));
String auth = username + ":" + password;

// Encoding the username and password using Base64 (java.util)
Expand All @@ -396,7 +395,7 @@ public static void getToUrlAuthentication(String url, String username, String pa
LogUtils.info("getToUrlAuthentication with Password: " + password);
// Load the application url
openWebsite(url);
Uninterruptibles.sleepUninterruptibly(Duration.ofSeconds(3));
sleep(3);
}

//Handle HTML5 validation message and valid value
Expand Down

0 comments on commit e786ce9

Please sign in to comment.