Search in sources :

Example 26 with WebUIDriver

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);
}
Also used : WebUIDriver(com.seleniumtests.driver.WebUIDriver) Test(org.testng.annotations.Test) GenericTest(com.seleniumtests.GenericTest) MockitoTest(com.seleniumtests.MockitoTest) PrepareForTest(org.powermock.core.classloader.annotations.PrepareForTest)

Aggregations

WebUIDriver (com.seleniumtests.driver.WebUIDriver)26 PrepareForTest (org.powermock.core.classloader.annotations.PrepareForTest)19 Test (org.testng.annotations.Test)19 GenericTest (com.seleniumtests.GenericTest)14 MockitoTest (com.seleniumtests.MockitoTest)14 ConnectorsTest (com.seleniumtests.ConnectorsTest)5 CustomEventFiringWebDriver (com.seleniumtests.driver.CustomEventFiringWebDriver)5 ReporterTest (com.seleniumtests.it.reporter.ReporterTest)5 NLWebDriver (com.neotys.selenium.proxies.NLWebDriver)2 ScenarioException (com.seleniumtests.customexception.ScenarioException)2 VideoRecorder (com.seleniumtests.util.video.VideoRecorder)2 File (java.io.File)2 Dimension (org.openqa.selenium.Dimension)2 WebDriver (org.openqa.selenium.WebDriver)2 Point (org.openqa.selenium.Point)1 WebDriverException (org.openqa.selenium.WebDriverException)1 Actions (org.openqa.selenium.interactions.Actions)1 DesiredCapabilities (org.openqa.selenium.remote.DesiredCapabilities)1 SessionId (org.openqa.selenium.remote.SessionId)1