public class JSFunction extends Object
| Modifier and Type | Method and Description |
|---|---|
<T> T |
call(org.openqa.selenium.WebDriver driver,
Object... args)
Call Javascript function.
|
static Map<String,JSFunction> |
load(InputStream is)
Load Javascript file.
|
static JSFunction |
loadFunction(InputStream is)
Load Javascript file as a function.
|
public static Map<String,JSFunction> load(InputStream is)
is - InputStream object.public static JSFunction loadFunction(InputStream is)
is - InputStream object.public <T> T call(org.openqa.selenium.WebDriver driver,
Object... args)
T - type of function result.driver - WebDriver object.args - arguments.Copyright © 2017. All rights reserved.