コード例 #1
0
 /**
  * Executes the given script with the element's object ID, but does not parse the response.
  *
  * @param script the script to execute
  */
 private void executeMethod(String script) {
   parent.assertConnected();
   debugger.callFunctionOnObject(script, objectId, false);
 }
コード例 #2
0
 /**
  * Calls the method and parses the result, the result must be a string
  *
  * @param method the method to call
  * @return response of EcmaScript in string presentation
  */
 public final String callMethod(String method) {
   parent.assertConnected();
   return debugger.callFunctionOnObject(method, objectId);
 }