- This repo contains automation tests for Shadow DOM elements using Selenium WebDriver 4.
- This repo uses Maven as build tool and TestNG testing framework to run the tests.
- Google Chrome's Download Page has been used as a demo page to automate Shadow DOM elements.
- Watir.com has been used for automating the shadow DOM elements.
By default, tests would be running on LambdaTest Platform.
If you want to run it on your local machine, please update the browser value in testng.xml
for test name Shadow DOM Tests on Watir Website
to
chrome
or firefox
and you should be able to run it in local chrome or firefox respectively.
-
To run the test from command line use the following command:
mvn clean install -Dusername=<LambdaTest username> -DaccessKey<LambdaTest access key>
-
To run the tests using TestNG:
- In the Run Configuration add the LambdaTest username and access key in the VM option as follows:
-Dusername=<LambdaTest username> -DaccessKey<LambdaTest access key>
- Right-click on the
testng.xml
file and selectRun '...\testng.xml'
- In the Run Configuration add the LambdaTest username and access key in the VM option as follows:
🧬 Need Assistance?
- Discuss your queries by writing to me @ [email protected], or you can ping me on the following social media sites:
- Twitter: mfaisal_khatri
- LinkedIn: Mohammad Faisal Khatri