Nothing Special   »   [go: up one dir, main page]

Skip to content

This repo contains example code to automate shadow dom elemets using selenium webdriver 4.

Notifications You must be signed in to change notification settings

mfaisalkhatri/shadow-dom-selenium

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Open Source Love

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.

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 -Dusername=<LambdaTest username> -DaccessKey<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: -Dusername=<LambdaTest username> -DaccessKey<LambdaTest access key>
    2. Right-click on the testng.xml file and select Run '...\testng.xml'

🧬 Need Assistance?

💭 Checkout the blogs related to Testing on my website and medium-account

About

This repo contains example code to automate shadow dom elemets using selenium webdriver 4.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages