/** * Creates a new PhantomJSDriver instance. The {@code service} will be started along with the * driver, and shutdown upon calling {@link #quit()}. * * @param service The service to use. * @param desiredCapabilities The capabilities required from PhantomJS/GhostDriver. */ public PhantomJSDriver(PhantomJSDriverService service, Capabilities desiredCapabilities) { super(new PhantomJSCommandExecutor(service), desiredCapabilities); }
/** * Creates a new PhantomJSDriver instance. The {@code service} will be started along with the * driver, and shutdown upon calling {@link #quit()}. * * @param service The service to use. * @param desiredCapabilities The capabilities required from PhantomJS/GhostDriver. */ public PhantomJSDriver(PhantomJSDriverService service, Capabilities desiredCapabilities) { super(new PhantomJSCommandExecutor(service), desiredCapabilities); }