Skip to content

Shadow DOM automation

Compare
Choose a tag to compare
@sukgu sukgu released this 03 Mar 08:42
· 69 commits to master since this release

##Problem Statement:
You have already developed your web-based automation framework in java selenium. Your frontend application uses Polymer that uses shadow dom. Selenium doesn't provide any way to deal with shadow-dom elements.

##Solution:
You can use this plugin by adding jar file or by including maven dependency in your java selenium project.

#How it works:
##Methods:
WebElement findElement(String cssSelector) : use this method if want single element from DOM

List findElements(String cssSelector) : use this if you want to find all elements from DOM

##How to use this plugin:
You will have to add maven dependency in your pom file.

io.github.sukgu automation 0.0.1-SNAPSHOT Or you can download the jar file from repository https://oss.sonatype.org/content/repositories/snapshots/io/github/sukgu/automation/0.0.1-SNAPSHOT/