com.applitools.eyes.selenium.ShadowDomLocator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eyes-selenium-java5 Show documentation
Show all versions of eyes-selenium-java5 Show documentation
Applitools Eyes SDK for Selenium Java WebDriver
package com.applitools.eyes.selenium;
import org.openqa.selenium.By;
import org.openqa.selenium.WebElement;
/**
* shadow dom locator
*/
public class ShadowDomLocator extends TargetPathLocator {
public ShadowDomLocator(TargetPathLocator parent, PathNodeValue value) {
super(parent, value);
}
public RegionLocator region(WebElement element) {
return new RegionLocator(this, new ElementReference(element));
}
public RegionLocator region(By by) {
return new RegionLocator(this, new ElementSelector(by));
}
public RegionLocator region(String selector) {
return new RegionLocator(this, new ElementSelector(selector)); // this
}
public ShadowDomLocator shadow(WebElement element) {
return new ShadowDomLocator(this, new ElementReference(element));
}
public ShadowDomLocator shadow(By by) {
return new ShadowDomLocator(this, new ElementSelector(by));
}
public ShadowDomLocator shadow(String selector) {
return new ShadowDomLocator(this, new ElementSelector(selector)); //this
}
}