T - target type for convertingS - type returned by javascript executionpublic interface TypeHandler<T,S>
If your js-interface defines a return type, which is not supported by
JavascriptExecutor, vani tries to find an TypeHandler, which
is able to convert to the declared return type.
For example, the jquery interface returns JQueryElement. Therefore
there is a implementation for converting to the required type.
JsTypeHandler. That's all.
JsTypeHandler}| Modifier and Type | Method and Description |
|---|---|
T |
get(S scriptResult,
org.openqa.selenium.WebDriver webDriver)
This method transfers the provided
scriptResult to the target
type of current handler. |
Class<T> |
getTargetType()
This method returns the target type of the handler.
|
Copyright © 2016. All rights reserved.