Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

mfaisalkhatri/shadow-dom-selenium

Open more actions menu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
31 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

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

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages

Morty Proxy This is a proxified and sanitized view of the page, visit original site.