List of usage examples for org.openqa.selenium.remote.service DriverService getUrl
public URL getUrl()
From source file:com.comcast.dawg.selenium.BrowserServiceManager.java
License:Apache License
/** * Gets a web driver for a given browser * @param browser The browser to get a driver for * @return// w w w .j a v a 2 s . c om * @throws IOException */ public static synchronized RemoteWebDriver getDriver(Browser browser) throws IOException { if (global == null) { DriverService service = start(browser); global = new RemoteWebDriver(service.getUrl(), getDesiredBrowserCapabilities(browser)); drivers.put(global, service); } return global; }
From source file:com.mengge.remote.AppiumCommandExecutor.java
License:Apache License
public AppiumCommandExecutor(Map<String, CommandInfo> additionalCommands, DriverService service, HttpClient.Factory httpClientFactory) { super(additionalCommands, service.getUrl(), httpClientFactory); this.service = service; }
From source file:io.appium.java_client.remote.AppiumCommandExecutor.java
License:Apache License
public AppiumCommandExecutor(Map<String, CommandInfo> additionalCommands, DriverService service) { super(additionalCommands, service.getUrl()); this.service = service; }