org.openqa.selenium.remote
Class ExecuteMethod

java.lang.Object
  extended by org.openqa.selenium.remote.ExecuteMethod

public class ExecuteMethod
extends Object

An encapsulation of RemoteWebDriver.executeScript(String, Object...).


Constructor Summary
ExecuteMethod(RemoteWebDriver driver)
           
 
Method Summary
 Object execute(String commandName, Map<String,?> parameters)
          Execute the given command on the remote webdriver server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ExecuteMethod

public ExecuteMethod(RemoteWebDriver driver)
Method Detail

execute

public Object execute(String commandName,
                      Map<String,?> parameters)
Execute the given command on the remote webdriver server. Any exceptions will be thrown by the underlying execute method.

Parameters:
commandName - The remote command to execute
parameters - The parameters to execute that command with
Returns:
The result of Response.getValue().


Copyright © 2012. All Rights Reserved.