use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementsBySeveralCriteriaNothingFound.
@Test(groups = { "it" })
public void testFindElementsBySeveralCriteriaNothingFound() {
SeleniumTestsContextManager.getThreadContext().setReplayTimeout(7);
Assert.assertEquals(new TextFieldElement("", ByC.and(By.tagName("input"), By.name("noElement"))).findElements().size(), 0);
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByLabelForwardWithoutTagName.
@Test(groups = { "it" })
public void testFindElementByLabelForwardWithoutTagName() {
new TextFieldElement("", ByC.labelForward("By id forward")).sendKeys("element found by label without tagname");
Assert.assertEquals(DriverTestPage.textSelectedId.getValue(), "element found by label without tagname");
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByPartialCustomLabelBackward.
@Test(groups = { "it" })
public void testFindElementByPartialCustomLabelBackward() {
new TextFieldElement("", ByC.partialLabelBackward("Test select Mult", "input", "h3")).sendKeys("element found by h3 partial tag backward");
Assert.assertEquals(DriverTestPage.textSelectedText.getValue(), "element found by h3 partial tag backward");
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByLabelBackward.
@Test(groups = { "it" })
public void testFindElementByLabelBackward() {
new TextFieldElement("", ByC.labelBackward("By id backward", "input")).sendKeys("element found by label backward");
Assert.assertEquals(DriverTestPage.textSelectedText.getValue(), "element found by label backward");
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByByLabelBackwardStarting.
@Test(groups = { "it" })
public void testFindElementByByLabelBackwardStarting() {
new TextFieldElement("", ByC.labelBackward("By id back^", "input")).sendKeys("element found by label backward^");
Assert.assertEquals(DriverTestPage.textSelectedText.getValue(), "element found by label backward^");
}
Aggregations