Class BaseHandler
java.lang.Object
com.epam.healenium.handlers.proxy.BaseHandler
- All Implemented Interfaces:
InvocationHandler
- Direct Known Subclasses:
SelfHealingProxyInvocationHandler,WebElementProxyHandler
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected org.openqa.selenium.WebDriverprotected SelfHealingEngine -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected PageAwareByawareBy(org.openqa.selenium.By by)protected org.openqa.selenium.WebElementfindElement(org.openqa.selenium.By by)protected List<org.openqa.selenium.WebElement>findElements(org.openqa.selenium.By by)protected org.openqa.selenium.WebElementlookUp(PageAwareBy key)Search target element on a pageprotected List<org.openqa.selenium.WebElement>lookUpElements(PageAwareBy key)Search target elements on a pageprotected org.openqa.selenium.WebElementwrapElement(org.openqa.selenium.WebElement element, ClassLoader loader)protected org.openqa.selenium.WebDriver.TargetLocatorwrapTarget(org.openqa.selenium.WebDriver.TargetLocator locator, ClassLoader loader)Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.lang.reflect.InvocationHandler
invoke
-
Field Details
-
engine
-
driver
protected final org.openqa.selenium.WebDriver driver
-
-
Constructor Details
-
BaseHandler
-
-
Method Details
-
findElement
protected org.openqa.selenium.WebElement findElement(org.openqa.selenium.By by) -
findElements
-
lookUp
Search target element on a page- Parameters:
key- will be used for checking|saving in cache- Returns:
- proxy web element
-
lookUpElements
Search target elements on a page- Parameters:
key- will be used for checking|saving in cache- Returns:
- proxy web elements
-
awareBy
- Parameters:
by- locator- Returns:
- PageAwareBy element
-
wrapElement
protected org.openqa.selenium.WebElement wrapElement(org.openqa.selenium.WebElement element, ClassLoader loader) -
wrapTarget
protected org.openqa.selenium.WebDriver.TargetLocator wrapTarget(org.openqa.selenium.WebDriver.TargetLocator locator, ClassLoader loader)
-