Search in sources :

Example 1 with SelenoidCapabilitiesParser

use of ru.sbtqa.tag.pagefactory.support.capabilities.SelenoidCapabilitiesParser in project page-factory-2 by sbtqa.

the class TagWebDriver method createRemoteWebDriver.

private static WebDriver createRemoteWebDriver(String webDriverUrl, DesiredCapabilities capabilities) throws MalformedURLException {
    URL remoteUrl = new URL(webDriverUrl);
    capabilities.merge(new SelenoidCapabilitiesParser().parse());
    return new RemoteWebDriver(remoteUrl, capabilities);
}
Also used : RemoteWebDriver(org.openqa.selenium.remote.RemoteWebDriver) SelenoidCapabilitiesParser(ru.sbtqa.tag.pagefactory.support.capabilities.SelenoidCapabilitiesParser) URL(java.net.URL)

Aggregations

URL (java.net.URL)1 RemoteWebDriver (org.openqa.selenium.remote.RemoteWebDriver)1 SelenoidCapabilitiesParser (ru.sbtqa.tag.pagefactory.support.capabilities.SelenoidCapabilitiesParser)1