Class ByShadowDom
java.lang.Object
org.openqa.selenium.By
net.serenitybdd.core.annotations.findby.By
net.thucydides.core.webdriver.javascript.ByShadowDom
By Selector that finds Shadow Dom elements.
Based on implementation from https://github.com/Georgegriff/query-selector-shadow-dom
QuerySelector that can pierce Shadow DOM roots without knowing the path through nested shadow roots.
-
Nested Class Summary
Nested classes/interfaces inherited from class net.serenitybdd.core.annotations.findby.By
By.ByButtonTextSelector, By.ByjQuerySelector, By.ByScLocator
Nested classes/interfaces inherited from class org.openqa.selenium.By
org.openqa.selenium.By.ByClassName, org.openqa.selenium.By.ByCssSelector, org.openqa.selenium.By.ById, org.openqa.selenium.By.ByLinkText, org.openqa.selenium.By.ByName, org.openqa.selenium.By.ByPartialLinkText, org.openqa.selenium.By.ByTagName, org.openqa.selenium.By.ByXPath
-
Method Summary
Modifier and TypeMethodDescriptionorg.openqa.selenium.WebElement
findElement
(org.openqa.selenium.SearchContext context) List<org.openqa.selenium.WebElement>
findElements
(org.openqa.selenium.SearchContext context) static ByShadowDom
toString()
Methods inherited from class net.serenitybdd.core.annotations.findby.By
buttonText, jquery, sclocator
Methods inherited from class org.openqa.selenium.By
className, cssSelector, equals, hashCode, id, linkText, name, partialLinkText, tagName, xpath
-
Method Details
-
of
-
findElements
- Specified by:
findElements
in classorg.openqa.selenium.By
-
findElement
public org.openqa.selenium.WebElement findElement(org.openqa.selenium.SearchContext context) - Overrides:
findElement
in classorg.openqa.selenium.By
-
toString
- Overrides:
toString
in classorg.openqa.selenium.By
-