/** * Creates a new ChromeDriver instance. The {@code service} will be started along with the * driver, and shutdown upon calling {@link #quit()}. * * @param service The service to use. * @param capabilities The capabilities required from the ChromeDriver. * @deprecated Use {@link ChromeDriver(ChromeDriverService, ChromeOptions)} instead. */ @Deprecated public ChromeDriver(ChromeDriverService service, Capabilities capabilities) { super(new ChromeDriverCommandExecutor(service), capabilities); locationContext = new RemoteLocationContext(getExecuteMethod()); webStorage = new RemoteWebStorage(getExecuteMethod()); touchScreen = new RemoteTouchScreen(getExecuteMethod()); networkConnection = new RemoteNetworkConnection(getExecuteMethod()); }