Search in sources :

Example 11 with DriverTestPage

use of com.seleniumtests.it.driver.support.pages.DriverTestPage in project seleniumRobot by bhecquet.

the class TestPageObject method testResizeWindowHeadless.

@Test(groups = { "it" })
public void testResizeWindowHeadless() throws Exception {
    SeleniumTestsContextManager.getThreadContext().setBrowser("*htmlunit");
    driver = WebUIDriver.getWebDriver(true);
    new DriverTestPage(true);
    new DriverTestPage(true).resizeTo(600, 400);
    Dimension viewPortSize = ((CustomEventFiringWebDriver) driver).getViewPortDimensionWithoutScrollbar();
    Assert.assertEquals(viewPortSize.width, 600);
    Assert.assertEquals(viewPortSize.height, 400);
}
Also used : DriverTestPage(com.seleniumtests.it.driver.support.pages.DriverTestPage) CustomEventFiringWebDriver(com.seleniumtests.driver.CustomEventFiringWebDriver) Dimension(org.openqa.selenium.Dimension) GenericDriverTest(com.seleniumtests.GenericDriverTest) Test(org.testng.annotations.Test)

Example 12 with DriverTestPage

use of com.seleniumtests.it.driver.support.pages.DriverTestPage in project seleniumRobot by bhecquet.

the class StubTestClassForDriverTest method testDriverManualSteps.

@Test(groups = "stub")
public void testDriverManualSteps() throws Exception {
    SeleniumTestsContextManager.getThreadContext().setManualTestSteps(true);
    addStep("Write");
    DriverTestPage page = new DriverTestPage(true)._writeSomething();
    addStep("Reset");
    page._reset();
}
Also used : DriverTestPage(com.seleniumtests.it.driver.support.pages.DriverTestPage) Test(org.testng.annotations.Test)

Example 13 with DriverTestPage

use of com.seleniumtests.it.driver.support.pages.DriverTestPage in project seleniumRobot by bhecquet.

the class StubTestClassForVideoTest method testDriverShortKo.

@Test(groups = { "video" })
public void testDriverShortKo() throws Exception {
    SeleniumTestsContextManager.getThreadContext().setReplayTimeout(1);
    new DriverTestPage(true)._writeSomethingOnNonExistentElement();
}
Also used : DriverTestPage(com.seleniumtests.it.driver.support.pages.DriverTestPage) Test(org.testng.annotations.Test)

Example 14 with DriverTestPage

use of com.seleniumtests.it.driver.support.pages.DriverTestPage in project seleniumRobot by bhecquet.

the class TestLogActions method initDriver.

@BeforeMethod(groups = { "ut" })
public void initDriver(final ITestContext testNGCtx) throws Exception {
    GenericTest.resetTestNGREsultAndLogger();
    initThreadContext(testNGCtx);
    SeleniumTestsContextManager.getThreadContext().setBrowser("htmlunit");
    driver = WebUIDriver.getWebDriver(true);
    testPage = new DriverTestPage(true);
}
Also used : DriverTestPage(com.seleniumtests.it.driver.support.pages.DriverTestPage) BeforeMethod(org.testng.annotations.BeforeMethod)

Example 15 with DriverTestPage

use of com.seleniumtests.it.driver.support.pages.DriverTestPage in project seleniumRobot by bhecquet.

the class TestExpectedConditionsC method initDriver.

@BeforeClass(groups = { "ut" })
public void initDriver(final ITestContext testNGCtx) throws Exception {
    initThreadContext(testNGCtx);
    SeleniumTestsContextManager.getThreadContext().setReplayTimeout(1);
    SeleniumTestsContextManager.getThreadContext().setBrowser("htmlunit");
    // start displaying page
    page = new DriverTestPage(true);
}
Also used : DriverTestPage(com.seleniumtests.it.driver.support.pages.DriverTestPage) BeforeClass(org.testng.annotations.BeforeClass)

Aggregations

DriverTestPage (com.seleniumtests.it.driver.support.pages.DriverTestPage)15 Test (org.testng.annotations.Test)9 GenericDriverTest (com.seleniumtests.GenericDriverTest)3 GenericTest (com.seleniumtests.GenericTest)3 TestStepManager (com.seleniumtests.core.TestStepManager)2 CustomEventFiringWebDriver (com.seleniumtests.driver.CustomEventFiringWebDriver)2 TestStep (com.seleniumtests.reporter.logger.TestStep)2 Dimension (org.openqa.selenium.Dimension)2 WebDriver (org.openqa.selenium.WebDriver)2 BeforeClass (org.testng.annotations.BeforeClass)2 BeforeMethod (org.testng.annotations.BeforeMethod)2 BrowserType (com.seleniumtests.driver.BrowserType)1 DriverScrollingTestPage (com.seleniumtests.it.driver.support.pages.DriverScrollingTestPage)1 DriverSubAngularTestPage (com.seleniumtests.it.driver.support.pages.DriverSubAngularTestPage)1 DriverTestAngularFrame (com.seleniumtests.it.driver.support.pages.DriverTestAngularFrame)1 DriverTestPageNativeActions (com.seleniumtests.it.driver.support.pages.DriverTestPageNativeActions)1 DriverTestPageObjectFatory (com.seleniumtests.it.driver.support.pages.DriverTestPageObjectFatory)1 DriverTestPageSalesforceLightning (com.seleniumtests.it.driver.support.pages.DriverTestPageSalesforceLightning)1 DriverTestPageWithoutFixedPattern (com.seleniumtests.it.driver.support.pages.DriverTestPageWithoutFixedPattern)1 WebServer (com.seleniumtests.it.driver.support.server.WebServer)1