use of com.wikia.webdriver.common.core.WikiaWebDriver in project selenium-tests by Wikia.
the class BrowserAbstract method getInstance.
/**
* Get a ready to work instance for chosen browser
*
* @return
*/
public WikiaWebDriver getInstance() {
setOptions();
setProxy();
setExtensions();
setBrowserLogging(Level.SEVERE);
WikiaWebDriver webdriver = create();
setTimeputs(webdriver);
setListeners(webdriver);
return webdriver;
}
use of com.wikia.webdriver.common.core.WikiaWebDriver in project selenium-tests by Wikia.
the class FirefoxBrowser method create.
@Override
public WikiaWebDriver create() {
caps.setCapability(FirefoxDriver.PROFILE, firefoxProfile);
caps.setCapability("marionette", true);
return new WikiaWebDriver(new FirefoxDriver(caps), server, false);
}
use of com.wikia.webdriver.common.core.WikiaWebDriver in project selenium-tests by Wikia.
the class DriverProvider method close.
public static void close() {
for (WikiaWebDriver webDriver : drivers) {
if (webDriver != null) {
try {
webDriver.quit();
} catch (UnsatisfiedLinkError | NoClassDefFoundError e) {
PageObjectLogging.log("Closing Browser", e, true);
}
}
}
drivers.clear();
ACTIVE_BROWSER_INDEX = 0;
}
Aggregations