public class DefaultExecutionResolver extends Object implements ExecutionResolver, JavaScript.DefaultExecutionResolver
Modifier and Type | Field and Description |
---|---|
static String |
CALL |
static String |
FUNCTION |
protected static Logger |
LOGGER |
Constructor and Description |
---|
DefaultExecutionResolver() |
Modifier and Type | Method and Description |
---|---|
protected Object[] |
castArguments(Object[] arguments) |
protected Object |
castEnumToString(Object enumValue) |
protected Object |
castResult(JSCall call,
Object returnValue) |
protected Object |
castStringToEnum(Class<?> returnType,
Object returnValue) |
Object |
execute(GrapheneContext context,
JSCall call) |
protected Object |
executeScriptForCall(org.openqa.selenium.JavascriptExecutor executor,
JSCall call) |
protected <T> void |
registerExtension(PageExtensionRegistry registry,
JSInterface target) |
protected String |
resolveScriptToExecute(JSCall call) |
public static final String FUNCTION
public static final String CALL
protected static final Logger LOGGER
public Object execute(GrapheneContext context, JSCall call)
execute
in interface ExecutionResolver
protected Object executeScriptForCall(org.openqa.selenium.JavascriptExecutor executor, JSCall call)
protected <T> void registerExtension(PageExtensionRegistry registry, JSInterface target)
Copyright © 2013 JBoss by Red Hat. All Rights Reserved.