@BeforeSuite(alwaysRun = true)
@Parameters({"..."})
protected void startSession(someParameter) throws Exception {
...
capability = DesiredCapabilities.firefox();
capability.setCapability("marionette", true);
FirefoxProfile firefoxProfile = new FirefoxProfile();
firefoxProfile.setPreference("dom.ipc.plugins.enabled.libflashplayer.so","true");
firefoxProfile.setPreference("plugin.state.flash", 2);
firefoxProfile = disableCookiesOnEGBToTestCookieFirefox(egbVariant, usedTestGroups, firefoxProfile);
capability.setCapability(FirefoxDriver.PROFILE, firefoxProfile);
...
}
@BeforeMethod(alwaysRun = true)
protected void beforeMethod() {
assertThat("Testclient " + seleniumHost + " could not be reached. Test will be aborted. Ignore Teardown error.", checkHostReachable(remoteSeleniumGridConsoleUrl), is(true));
driver = new RemoteWebDriver(remoteSeleniumHubUrl, capability);
driver = new Augmenter().augment(driver);
SeleniumTestBase.getDriver().manage().window().setSize(new Dimension(1440, 900));
standardWaitTime = new WebDriverWait(driver, 70);
SeleniumTestBase.getDriver().manage().deleteAllCookies();
SeleniumTestBase.getDriver().get(website);
...
}