Search in sources :

Example 1 with WebPageChecks

use of ru.sbtqa.tag.pagefactory.web.checks.WebPageChecks in project page-factory-2 by sbtqa.

the class ContactPage method errNotContains.

@ActionTitle("check that error message not contains")
public void errNotContains(String message) {
    WebPageChecks checks = new WebPageChecks();
    Assert.assertFalse(checks.checkEquality(errorMsg, message, MatchStrategy.CONTAINS));
}
Also used : WebPageChecks(ru.sbtqa.tag.pagefactory.web.checks.WebPageChecks) ActionTitle(ru.sbtqa.tag.pagefactory.annotations.ActionTitle)

Example 2 with WebPageChecks

use of ru.sbtqa.tag.pagefactory.web.checks.WebPageChecks 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));
}
Also used : WebPageChecks(ru.sbtqa.tag.pagefactory.web.checks.WebPageChecks) ActionTitle(ru.sbtqa.tag.pagefactory.annotations.ActionTitle)

Aggregations

ActionTitle (ru.sbtqa.tag.pagefactory.annotations.ActionTitle)2 WebPageChecks (ru.sbtqa.tag.pagefactory.web.checks.WebPageChecks)2