Class PageAwareBy


  • public class PageAwareBy
    extends org.openqa.selenium.By
    • Nested Class Summary

      • 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, org.openqa.selenium.By.Remotable
    • Constructor Summary

      Constructors 
      Constructor Description
      PageAwareBy()  
    • Constructor Detail

      • PageAwareBy

        public PageAwareBy()
    • Method Detail

      • by

        public static PageAwareBy by​(String pageName,
                                     org.openqa.selenium.By by)
        Instantiates a page-aware locator.
        Parameters:
        pageName - an identifier of the current UI state the element is located on
        by - the original element locator
        Returns:
        the locator that indicates that the element is a subject to healing.
      • findElements

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

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