Package com.epam.healenium
Class PageAwareBy
- java.lang.Object
-
- org.openqa.selenium.By
-
- com.epam.healenium.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()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static PageAwareByby(String pageName, org.openqa.selenium.By by)Instantiates a page-aware locator.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.SearchContext searchContext)StringtoString()
-
-
-
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 onby- 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:
findElementsin classorg.openqa.selenium.By
-
toString
public String toString()
- Overrides:
toStringin classorg.openqa.selenium.By
-
-