@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; }
return new Builder().usingPhantomJSExecutable(phantomjsfile) .usingGhostDriver(ghostDriverfile) .usingAnyFreePort()
return new Builder().usingPhantomJSExecutable(phantomjsfile) .usingGhostDriver(ghostDriverfile) .usingAnyFreePort()
return new Builder().usingPhantomJSExecutable(phantomjsfile) .usingGhostDriver(ghostDriverfile) .usingAnyFreePort()