@Override protected PhantomJSDriverService newDriverService() { PhantomJSDriverService newService = new PhantomJSDriverService.Builder() .usingAnyFreePort() .usingPhantomJSExecutable(phantomJSBinary()) .build(); DriverPathConfiguration.updateSystemProperty(PHANTOMJS_BINARY_PATH.getPropertyName()) .withExecutablePath(phantomJSBinary()); Runtime.getRuntime().addShutdownHook(new StopServiceHook(newService)); return newService; }
.usingGhostDriverCommandLineArguments( findCLIArgumentsFromCaps(desiredCapabilities, PHANTOMJS_GHOSTDRIVER_CLI_ARGS)) .build();
.usingGhostDriverCommandLineArguments( findCLIArgumentsFromCaps(desiredCapabilities, PHANTOMJS_GHOSTDRIVER_CLI_ARGS)) .build();
.usingGhostDriverCommandLineArguments( findCLIArgumentsFromCaps(desiredCapabilities, PHANTOMJS_GHOSTDRIVER_CLI_ARGS)) .build();