use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementsBySeveralCriteriaNothingFound2.
@Test(groups = { "it" })
public void testFindElementsBySeveralCriteriaNothingFound2() {
SeleniumTestsContextManager.getThreadContext().setReplayTimeout(7);
Assert.assertEquals(new TextFieldElement("", ByC.and(By.tagName("noElement"), By.name("textField"))).findElements().size(), 0);
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByCustomLabelForward.
@Test(groups = { "it" })
public void testFindElementByCustomLabelForward() {
new TextFieldElement("", ByC.labelForward("Test select", "input", "h3")).sendKeys("element found by h3 tag");
Assert.assertEquals(DriverTestPage.textSelectedId.getValue(), "element found by h3 tag");
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementBySeveralCriteria.
@Test(groups = { "it" })
public void testFindElementBySeveralCriteria() {
TextFieldElement el = new TextFieldElement("", ByC.and(By.tagName("input"), By.name("textField")));
Assert.assertEquals(el.getTagName(), "input");
Assert.assertEquals(el.getAttribute("name"), "textField");
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByAttributeEndingWith.
// test attribute "$" syntax"
@Test(groups = { "it" })
public void testFindElementByAttributeEndingWith() {
new TextFieldElement("", ByC.attribute("attr$", "tribute")).sendKeys("element found by attribute");
Assert.assertEquals(DriverTestPage.textSelectedId.getValue(), "element found by attribute");
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByLabelBackwardWithoutTagName.
@Test(groups = { "it" })
public void testFindElementByLabelBackwardWithoutTagName() {
new TextFieldElement("", ByC.labelBackward("By id backward")).sendKeys("element found by label backward without tagname");
Assert.assertEquals(DriverTestPage.textSelectedText.getValue(), "element found by label backward without tagname");
}
Aggregations