Class InterceptorOfAListOfElements
java.lang.Object
io.appium.java_client.pagefactory.interceptors.InterceptorOfAListOfElements
- All Implemented Interfaces:
MethodCallListener
- Direct Known Subclasses:
ElementListInterceptor,WidgetListInterceptor
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.openqa.selenium.support.pagefactory.ElementLocatorFields inherited from interface io.appium.java_client.proxy.MethodCallListener
UNSET -
Constructor Summary
ConstructorsConstructorDescriptionInterceptorOfAListOfElements(@Nullable org.openqa.selenium.support.pagefactory.ElementLocator locator) -
Method Summary
Modifier and TypeMethodDescriptionOverride this callback in order to change/customize the behavior of a single or multiple methods.protected abstract ObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.appium.java_client.proxy.MethodCallListener
afterCall, beforeCall, onError
-
Field Details
-
locator
protected final org.openqa.selenium.support.pagefactory.ElementLocator locator
-
-
Constructor Details
-
InterceptorOfAListOfElements
public InterceptorOfAListOfElements(@Nullable org.openqa.selenium.support.pagefactory.ElementLocator locator)
-
-
Method Details
-
getObject
protected abstract Object getObject(List<org.openqa.selenium.WebElement> elements, Method method, Object[] args) throws Throwable - Throws:
Throwable
-
call
Description copied from interface:MethodCallListenerOverride this callback in order to change/customize the behavior of a single or multiple methods. The original method result will be replaced with the result returned by this callback. Also, any exception thrown by it will replace original method(s) exception.- Specified by:
callin interfaceMethodCallListener- Parameters:
obj- The proxy instancemethod- Method to be replacedargs- Array of method argumentsoriginal- The reference to the original method in case it is necessary to instrument its result.- Returns:
- The type of the returned result should be castable to the returned type of the original method.
- Throws:
Throwable
-