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 -
Method Summary
Modifier and TypeMethodDescriptionstatic PageAwareByInstantiates a page-aware locator.List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.SearchContext searchContext) toString()Methods inherited from class org.openqa.selenium.By
className, cssSelector, equals, findElement, getJavascriptExecutor, getWebDriver, hashCode, id, linkText, name, partialLinkText, tagName, xpath
-
Constructor Details
-
PageAwareBy
public PageAwareBy()
-
-
Method Details
-
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
- Overrides:
toStringin classorg.openqa.selenium.By
-