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

项目:grid-refactor-remote-server    文件:ExecuteScript.java   
public void setJsonParameters(Map<String, Object> allParameters) throws Exception {
  script = (String) allParameters.get("script");

  List<?> params = (List<?>) allParameters.get("args");

  args = Lists.newArrayList(Iterables.transform(params,
      new ArgumentConverter(getKnownElements())));
}
项目:grid-refactor-remote-server    文件:ExecuteAsyncScript.java   
public void setJsonParameters(Map<String, Object> allParameters) throws Exception {
  script = (String) allParameters.get("script");

  List<?> params = (List<?>) allParameters.get("args");

  args.addAll(Lists.newArrayList(
    Iterables.transform(params, new ArgumentConverter(getKnownElements()))));
}
项目:grid-refactor-remote-server    文件:SwitchToFrame.java   
public void setJsonParameters(Map<String, Object> allParameters) throws Exception {
  setId(new ArgumentConverter(getKnownElements()).apply(allParameters.get("id")));
}