Java 类org.openqa.selenium.remote.server.handler.internal.ResultConverter 实例源码

项目:grid-refactor-remote-server    文件:ExecuteScript.java   
@Override
public Object call() throws Exception {
  Object value;
  if (args.size() > 0) {
    value = ((JavascriptExecutor) getDriver()).executeScript(script, args.toArray());
  } else {
    value = ((JavascriptExecutor) getDriver()).executeScript(script);
  }

  return new ResultConverter(getKnownElements()).apply(value);
}
项目:grid-refactor-remote-server    文件:ExecuteAsyncScript.java   
@Override
public Object call() throws Exception {

  Object value;
  if (args.size() > 0) {
    value = ((JavascriptExecutor) getDriver()).executeAsyncScript(script, args.toArray());
  } else {
    value = ((JavascriptExecutor) getDriver()).executeAsyncScript(script);
  }

  return new ResultConverter(getKnownElements()).apply(value);
}