示例#1
0
  public RemoteWebDriver(
      CommandExecutor executor,
      Capabilities desiredCapabilities,
      Capabilities requiredCapabilities) {
    this.executor = executor;

    boolean isProfilingEnabled =
        desiredCapabilities != null
            && desiredCapabilities.is(CapabilityType.ENABLE_PROFILING_CAPABILITY);
    init(isProfilingEnabled);

    if (executor instanceof NeedsLocalLogs) {
      ((NeedsLocalLogs) executor).setLocalLogs(localLogs);
    }
    startClient();
    startSession(desiredCapabilities, requiredCapabilities);
  }
示例#2
0
 // For cglib
 protected RemoteWebDriver() {
   init(false);
 }