use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByPartialAttribute.
// test attribute "*" syntax
@Test(groups = { "it" })
public void testFindElementByPartialAttribute() {
new TextFieldElement("", ByC.attribute("attr*", "ttribut")).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 testFindElementBySeveralCriteriaNothingFound.
@Test(groups = { "it" }, expectedExceptions = NoSuchElementException.class)
public void testFindElementBySeveralCriteriaNothingFound() {
SeleniumTestsContextManager.getThreadContext().setReplayTimeout(7);
new TextFieldElement("", ByC.and(By.tagName("input"), By.name("noElement"))).getTagName();
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByCustomPartialLabelForward.
@Test(groups = { "it" })
public void testFindElementByCustomPartialLabelForward() {
new TextFieldElement("", ByC.partialLabelForward("Test sele", "input", "h3")).sendKeys("element found by partial h3 tag");
Assert.assertEquals(DriverTestPage.textSelectedId.getValue(), "element found by partial h3 tag");
}
use of com.seleniumtests.uipage.htmlelements.TextFieldElement in project seleniumRobot by bhecquet.
the class TestByC method testFindElementByAttributeStartingWith.
// test attribute "^" syntax"
@Test(groups = { "it" })
public void testFindElementByAttributeStartingWith() {
new TextFieldElement("", ByC.attribute("attr^", "attribu")).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 testFindElementByPartialLabelForward.
@Test(groups = { "it" })
public void testFindElementByPartialLabelForward() {
new TextFieldElement("", ByC.partialLabelForward("By id for", "input")).sendKeys("element found by partial label");
Assert.assertEquals(DriverTestPage.textSelectedId.getValue(), "element found by partial label");
}
Aggregations