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);
}
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();
}
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();
}
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);
}
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);
}
Aggregations