@Test public void allowsToSpecifyCustomWebDriverConfiguration() { WebDriverRunner.closeWebDriver(); Configuration.browser = "com.codeborne.selenide.WebDriverRunnerTest$CustomWebDriverProvider"; assertSame(driver, WebDriverRunner.getWebDriver()); }
@Test public void allowsToSpecifyCustomWebDriverProgrammatically() { HtmlUnitDriver myDriver = new HtmlUnitDriver(true); WebDriverRunner.setWebDriver(myDriver); open(url); assertSame(myDriver, WebDriverRunner.getWebDriver()); }