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
.
Add dependency to your POM.xml
:
<dependency>
<groupId>io.github.d4vos</groupId>
<artifactId>shadow-webdriver</artifactId>
<version>0.1.1</version>
</dependency>
Initialize WebDriver as usual:
WebDriver driver = new ChromeDriver(); // EdgeDriver(), GeckoDriver() etc.
and then just wrap it..
driver = new ShadowDriver(driver);
Enjoy 😄