Skip to content

Files

Latest commit

3c339b7 · Aug 3, 2025

History

History
53 lines (35 loc) · 2.43 KB

readme.md

File metadata and controls

53 lines (35 loc) · 2.43 KB

Don't forget to give a ⭐ to make the project popular.

❓ What is this Repository about?

  • 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.
  • LambdaTest Selenium Playground - Shadow DOM is used for automating Shadow DOM elements.

Running the Tests

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.xmlfor 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 -DLT_USERNAME=<LambdaTest username> -DLT_ACCESSKEY=<LambdaTest access key>

  • To run the tests using TestNG:

    1. In the Run Configuration add the LambdaTest username and access key in the VM option as follows: -DLT_USERNAME=<LambdaTest username> -DLT_ACCESSKEY=<LambdaTest access key>
    2. Right-click on the testng.xml file and select Run '...\testng.xml'

✍️ Blog Links

🧬 Need Assistance?

💭 Checkout the blogs related to Software Testing and Test Automation on my Medium blog