@Test public void allowsToSpecifyCustomWebDriverConfiguration() { WebDriverRunner.closeWebDriver(); Configuration.browser = "com.codeborne.selenide.WebDriverRunnerTest$CustomWebDriverProvider"; assertSame(driver, WebDriverRunner.getWebDriver()); }
@After public void tearDown() { WebDriverRunner.closeWebDriver(); }
@After public void resetSettings() { WebDriverRunner.closeWebDriver(); Configuration.browser = System.getProperty("browser", FIREFOX); WebDriverRunner.webdriverContainer = new WebDriverThreadLocalContainer(); }
@Before public void setUp() { WebDriverRunner.closeWebDriver(); WebDriverRunner.setWebDriver(webdriver); }