@Test
  public void allowsToSpecifyCustomWebDriverConfiguration() {
    WebDriverRunner.closeWebDriver();
    Configuration.browser = "com.codeborne.selenide.WebDriverRunnerTest$CustomWebDriverProvider";

    assertSame(driver, WebDriverRunner.getWebDriver());
  }
示例#2
0
 @After
 public void tearDown() {
   WebDriverRunner.closeWebDriver();
 }
 @After
 public void resetSettings() {
   WebDriverRunner.closeWebDriver();
   Configuration.browser = System.getProperty("browser", FIREFOX);
   WebDriverRunner.webdriverContainer = new WebDriverThreadLocalContainer();
 }
示例#4
0
 @Before
 public void setUp() {
   WebDriverRunner.closeWebDriver();
   WebDriverRunner.setWebDriver(webdriver);
 }