Search in sources :

Example 1 with WikiaWebDriver

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;
}
Also used : WikiaWebDriver(com.wikia.webdriver.common.core.WikiaWebDriver)

Example 2 with WikiaWebDriver

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);
}
Also used : WikiaWebDriver(com.wikia.webdriver.common.core.WikiaWebDriver) FirefoxDriver(org.openqa.selenium.firefox.FirefoxDriver)

Example 3 with WikiaWebDriver

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;
}
Also used : WikiaWebDriver(com.wikia.webdriver.common.core.WikiaWebDriver)

Aggregations

WikiaWebDriver (com.wikia.webdriver.common.core.WikiaWebDriver)3 FirefoxDriver (org.openqa.selenium.firefox.FirefoxDriver)1