use of com.seleniumtests.driver.WebUIDriver in project seleniumRobot by bhecquet.
the class TestWebUIDriver method testGetCurrentWebUiDriver.
/**
* A new WebUIDriver is the new default one
*/
@Test(groups = { "ut" })
public void testGetCurrentWebUiDriver() {
WebUIDriver uiDriver1 = WebUIDriver.getWebUIDriver(true, "foo");
WebUIDriver uiDriver2 = WebUIDriver.getWebUIDriver(true, "bar");
Assert.assertEquals(WebUIDriver.getUxDriverSession().get().size(), 2);
Assert.assertEquals(WebUIDriver.getCurrentWebUiDriverName(), "bar");
Assert.assertEquals(WebUIDriver.getWebUIDriver(false), uiDriver2);
}
Aggregations