use of ru.sbtqa.tag.pagefactory.annotations.ActionTitle in project page-factory-2 by sbtqa.
the class ContactPage method findWebElement.
@ActionTitle("check find web element")
public void findWebElement() {
HtmlFindUtils htmlFindUtils = Environment.getFindUtils();
WebElement webElement = htmlFindUtils.find("send", WebElement.class);
Assert.assertFalse("Incorrect type", webElement.getClass().isAssignableFrom(TypifiedElement.class));
checkType(htmlFindUtils.find("send", Button.class), Button.class);
}
use of ru.sbtqa.tag.pagefactory.annotations.ActionTitle in project page-factory-2 by sbtqa.
the class ContactPage method findTypifiedElement.
@ActionTitle("check find typified element")
public void findTypifiedElement() {
HtmlFindUtils htmlFindUtils = Environment.getFindUtils();
checkType(htmlFindUtils.find("first name", TypifiedElement.class), TextInput.class);
checkType(htmlFindUtils.find("first name", TextInput.class), TextInput.class);
checkType(htmlFindUtils.find("first name", WebElement.class), TextInput.class);
}
use of ru.sbtqa.tag.pagefactory.annotations.ActionTitle in project page-factory-2 by sbtqa.
the class ContactPage method errContains.
@ActionTitle("check that error message contains")
public void errContains(String message) {
WebPageChecks checks = new WebPageChecks();
Assert.assertTrue(checks.checkEquality(errorMsg, message, MatchStrategy.CONTAINS));
}
Aggregations