/** * Creates a new ChromeDriver instance with the specified options. * * @param options The options to use. * @see #ChromeDriver(ChromeDriverService, ChromeOptions) */ public ChromeDriver(ChromeOptions options) { this(ChromeDriverService.createDefaultService(), options); }
@Override public ChromeDriverService getDriverService() { return ChromeDriverService.createDefaultService(); }
/** * Get the ChromeDriverService to use. Exists to allow subclasses to override. * * @return the default chrome service. */ public ChromeDriverService getChromeDriverService() { return ChromeDriverService.createDefaultService(); }
@Override public boolean isAvailable() { try { ChromeDriverService.createDefaultService(); return true; } catch (IllegalStateException | WebDriverException e) { return false; } }
public ChromeDriverEx(Capabilities capabilities) { this(ChromeDriverService.createDefaultService(), capabilities); }
/** * Creates a new ChromeDriver instance. The {@code capabilities} will be passed to the * ChromeDriver service. * * @param capabilities The capabilities required from the ChromeDriver. * @see #ChromeDriver(ChromeDriverService, Capabilities) * @deprecated Use {@link ChromeDriver(ChromeOptions)} instead. */ @Deprecated public ChromeDriver(Capabilities capabilities) { this(ChromeDriverService.createDefaultService(), capabilities); }
/** * Creates a new ChromeDriver using the {@link ChromeDriverService#createDefaultService default} * server configuration. * * @see #ChromeDriver(ChromeDriverService, ChromeOptions) */ public ChromeDriver() { this(ChromeDriverService.createDefaultService(), new ChromeOptions()); }