예제 #1
0
  @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();
 }
예제 #3
0
 @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);
 }