Skip to content

Selenium WebDriver wrapper that can handle shadow DOM automation

License

Notifications You must be signed in to change notification settings

D4VOS/shadow-webdriver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

60 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Shadow DOM Webdriver

Master CI Maven Central License

What is it?

It's simple WebDriver wrapper, based on sukgu's Shadow Selenium Automation project.

Shadow WebDriver can be used as a normal WebDriver. Supports Shadow and regular DOMs. It doesn't need @FindElementBy annotations in Page Objects. With that wrapper you can use @FindBy.


Installation

Add dependency to your POM.xml:

<dependency>
  <groupId>io.github.d4vos</groupId>
  <artifactId>shadow-webdriver</artifactId>
  <version>0.1.1</version>
</dependency>

How use it?

Initialize WebDriver as usual:

WebDriver driver = new ChromeDriver(); // EdgeDriver(), GeckoDriver() etc.

and then just wrap it..

driver = new ShadowDriver(driver);

Enjoy 😄