Class ByShadowDom


  • public class ByShadowDom
    extends By
    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.
    • Method Detail

      • findElements

        public List<org.openqa.selenium.WebElement> findElements​(org.openqa.selenium.SearchContext context)
        Specified by:
        findElements in class org.openqa.selenium.By
      • findElement

        public org.openqa.selenium.WebElement findElement​(org.openqa.selenium.SearchContext context)
        Overrides:
        findElement in class org.openqa.selenium.By
      • toString

        public String toString()
        Overrides:
        toString in class org.openqa.selenium.By