public SeleniumProvider(String gridUrl, String baseUrl) { DesiredCapabilities capabilities = DesiredCapabilities.chrome(); this.baseURL = baseUrl; try { this.driver = new RemoteWebDriver(new URL(gridUrl), capabilities); } catch (MalformedURLException e) { LOGGER.error(e.getMessage()); } browserDriver = new BrowserDriver(driver, this.baseURL); this.selenium = browserDriver.getSelenium(); }
public void openUrl() { browserDriver.get(baseURL); }
public SeleniumProvider(WebDriver driver, String baseURL) { this.driver = driver; this.baseURL = baseURL; browserDriver = new BrowserDriver(driver, baseURL); this.selenium = browserDriver.getSelenium(); }