Skip to content

Commit 230961d

Browse files
Added crossbrowser testing tutorial link in readme and minor changes made to the repo (#134)
* added tutorial blog link and video in readme * updated dependency versions in pom.xml * updated versions of dependencies in pom.xml, disabled lambdatest ecommerce website tests as product is not available, added edge browser block on selenium grid file
1 parent 97c5bda commit 230961d

File tree

4 files changed

+29
-12
lines changed

4 files changed

+29
-12
lines changed

README.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
- This repo has example codes with Selenium 4 features.
1111
- Websites used for testing are: [automationpractice.com](http://automationpractice.com/index.php), [saucedemo.com](https://www.saucedemo.com),
1212
[the-internet](http://the-internet.herokuapp.com/) [owasp-juice-shop](https://github.com/juice-shop/juice-shop)
13-
and [LambdaTest E-Commerce Playground](https://ecommerce-playground.lambdatest.io/)
13+
and [LambdaTest e-commerce Playground](https://ecommerce-playground.lambdatest.io/)
1414
- This repo uses `Maven` as build tool and `TestNG` testing framework to run the tests.
1515

1616
## Talking more about the Scenarios Covered in this project:
@@ -36,6 +36,9 @@
3636

3737
- [Selenium 4 WebDriver Hierarchy: A Detailed Explanation](https://medium.com/@iamfaisalkhatri/selenium-4-webdriver-hierarchy-a-detailed-explanation-lambdatest-18771c5fd3e9)
3838
- [Selenium Manager in Selenium 4.11.0: New Features and Improvements](https://medium.com/@iamfaisalkhatri/selenium-manager-in-selenium-4-11-0-new-features-and-improvements-lambdatest-761593a7f009)
39+
- [Different Types of Locators in Selenium WebDriver](https://www.lambdatest.com/blog/locators-in-selenium-webdriver-with-examples/)
40+
- [How to Locate Elements Using CSS Selectors in Selenium](https://www.lambdatest.com/learning-hub/css-selectors)
41+
- [How to Use @FindBy Annotation in Selenium Java](https://www.lambdatest.com/blog/findby-annotation-selenium-java/)
3942
- [Understanding CSS Selectors in Selenium](https://medium.com/@iamfaisalkhatri/understanding-css-selectors-in-selenium-pcloudy-blog-3e4b09672264)
4043
- [End to End testing using Selenium WebDriver and Java](https://medium.com/@iamfaisalkhatri/end-to-end-testing-using-selenium-webdriver-and-java-4ff8667716ca)
4144
- [Writing Selenium Web Automation tests in Fluent way!](https://medium.com/@iamfaisalkhatri/writing-selenium-web-automation-tests-in-fluent-way-864db95ee67a)
@@ -44,15 +47,16 @@
4447
- [How to Automate ServiceNow with Selenium](https://medium.com/@iamfaisalkhatri/how-to-automate-servicenow-with-selenium-511e41172161)
4548
- [Cross browser testing in Selenium WebDriver](https://medium.com/@iamfaisalkhatri/cross-browser-testing-in-selenium-webdriver-pcloudy-blog-46e9d70fa13a)
4649
- [How to Handle ElementClickInterceptedException in Selenium Java](https://www.lambdatest.com/blog/elementclickinterceptedexception-in-selenium-java/)
47-
- [How to Use @FindBy Annotation in Selenium Java](https://www.lambdatest.com/blog/findby-annotation-selenium-java/)
4850

4951
## :movie_camera: Tutorial Videos
5052

5153
[![Watch the video](https://img.youtube.com/vi/bhZX7apMqR8/hqdefault.jpg)]( https://www.youtube.com/live/bhZX7apMqR8?si=4n0u5YiMuz5vTiHd)
5254
[![Watch the video](https://img.youtube.com/vi/uHLYoJmZxWc/hqdefault.jpg)](https://youtu.be/uHLYoJmZxWc?si=3nevAn0Z3QZycdG8)
55+
[![Watch the video](https://img.youtube.com/vi/_hlXjVTa-jo/hqdefault.jpg)](https://youtu.be/_hlXjVTa-jo?si=PfOfU7ihb8eEgduh)
5356
[![Watch the video](https://img.youtube.com/vi/sVBgpz1z9Ts/hqdefault.jpg)]( https://youtu.be/sVBgpz1z9Ts?si=azE1_vquOwT9jFT1d)
5457

5558

59+
5660
## End-to-End Tests for OWASP-Juice-Shop
5761

5862
- End-to-End tests for Juice Shop Website are running on `http://localhost:3000` inside the container in GitHub actions.

docker-compose-v3-seleniumgrid-m2.yml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,19 @@ services:
2929
- SE_NODE_MAX_SESSIONS=1
3030
# - SE_NODE_SESSION_TIMEOUT=180
3131

32+
edge:
33+
image: selenium/node-edge:latest
34+
shm_size: 2gb
35+
depends_on:
36+
- selenium-hub
37+
environment:
38+
- SE_EVENT_BUS_HOST=selenium-hub
39+
- SE_EVENT_BUS_PUBLISH_PORT=4442
40+
- SE_EVENT_BUS_SUBSCRIBE_PORT=4443
41+
- SE_NODE_MAX_INSTANCES=1
42+
- SE_NODE_MAX_SESSIONS=1
43+
# - SE_NODE_SESSION_TIMEOUT=180
44+
3245
selenium-hub:
3346
image: seleniarm/hub:latest
3447
container_name: selenium-hub

pom.xml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,18 @@
1313

1414
<properties>
1515
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
16-
<selenium.java.version>4.17.0</selenium.java.version>
16+
<selenium.java.version>4.18.1</selenium.java.version>
1717
<testng.version>7.9.0</testng.version>
18-
<webdrivermanager.version>5.6.3</webdrivermanager.version>
18+
<webdrivermanager.version>5.7.0</webdrivermanager.version>
1919
<commons-io.version>2.15.1</commons-io.version>
20-
<log4jcore.version>2.20.0</log4jcore.version>
21-
<log4japi.version>2.20.0</log4japi.version>
22-
<orgjson.version>20240205</orgjson.version>
23-
<seleniumdevtools.version>4.17.0</seleniumdevtools.version>
24-
<lombok.version>1.18.30</lombok.version>
20+
<log4jcore.version>2.23.1</log4jcore.version>
21+
<log4japi.version>2.23.1</log4japi.version>
22+
<orgjson.version>20240303</orgjson.version>
23+
<seleniumdevtools.version>4.18.1</seleniumdevtools.version>
24+
<lombok.version>1.18.32</lombok.version>
2525
<datafaker.version>2.1.0</datafaker.version>
2626
<maven-enforcer-plugin.version>3.4.1</maven-enforcer-plugin.version>
27-
<maven.compiler.version>3.12.1</maven.compiler.version>
27+
<maven.compiler.version>3.13.0</maven.compiler.version>
2828
<surefire-version>3.2.5</surefire-version>
2929
<java.release.version>17</java.release.version>
3030
<maven.source.encoding>UTF-8</maven.source.encoding>
@@ -37,7 +37,7 @@
3737
<sonar.java.libraries>target/classes/**</sonar.java.libraries>
3838
<sonar.coverage.jacoco.xmlReportPaths>${project.basedir}/target/site/jacoco/jacoco.xml
3939
</sonar.coverage.jacoco.xmlReportPaths>
40-
<sonar.java.source>15</sonar.java.source>
40+
<sonar.java.source>17</sonar.java.source>
4141
<jacoco.version>0.8.11</jacoco.version>
4242
<sonarjacocolistener.version>5.14.0.18788</sonarjacocolistener.version>
4343
<sonarmavenplugin.version>3.10.0.2594</sonarmavenplugin.version>

test-suite/testng.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@
55
<suite-file path="testng-saucedemo.xml"/>
66
<suite-file path="testng-theinternet.xml"/>
77
<suite-file path="testng-juice-shop.xml"/>
8-
<suite-file path="testng-lambdatestecommerce.xml"/>
98
<suite-file path="testng-seleniumgrid-theinternet.xml"/>
109
<suite-file path="testng-lambdatest-selenium-playground.xml"/>
1110
<!-- <suite-file path="testng-seleniumgrid-juiceshop.xml"/>-->
11+
<!-- <suite-file path="testng-lambdatestecommerce.xml"/>-->
1212
</suite-files>
1313
</suite> <!-- Suite -->

0 commit comments

Comments
 (0)