use of org.asqatasun.rules.textbuilder.LinkTextElementBuilder in project Asqatasun by Asqatasun.
the class Aw22Rule13021 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
ElementPresenceChecker epc = getElementPresenceChecker();
epc.setTextElementBuilder(new LinkTextElementBuilder());
epc.check(sspHandler, getElements(), testSolutionHandler);
}
use of org.asqatasun.rules.textbuilder.LinkTextElementBuilder in project Asqatasun by Asqatasun.
the class Rgaa22Rule06021 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
if (imageLinks.isEmpty() && formWithTargetHandler.isEmpty()) {
testSolutionHandler.addTestSolution(TestSolution.NOT_APPLICABLE);
return;
}
ElementPresenceChecker epc = new ElementPresenceChecker(TestSolution.NEED_MORE_INFO, TestSolution.NOT_APPLICABLE, CHECK_USER_IS_WARNED_WHEN_NEW_WINDOW_OPEN_MSG, null, TEXT_ELEMENT2, TITLE_ATTR);
epc.setTextElementBuilder(new LinkTextElementBuilder());
epc.check(sspHandler, imageLinks, testSolutionHandler);
epc = new ElementPresenceChecker(TestSolution.NEED_MORE_INFO, TestSolution.NOT_APPLICABLE, CHECK_USER_IS_WARNED_WHEN_NEW_WINDOW_OPEN_MSG, null);
epc.check(sspHandler, formWithTargetHandler, testSolutionHandler);
}
use of org.asqatasun.rules.textbuilder.LinkTextElementBuilder in project Asqatasun by Asqatasun.
the class Rgaa22Rule06031 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
if (compositeLinks.isEmpty()) {
testSolutionHandler.addTestSolution(TestSolution.NOT_APPLICABLE);
return;
}
ElementPresenceChecker epc = new ElementPresenceChecker(TestSolution.NEED_MORE_INFO, TestSolution.NOT_APPLICABLE, CHECK_USER_IS_WARNED_WHEN_NEW_WINDOW_OPEN_MSG, null, TEXT_ELEMENT2, TITLE_ATTR);
epc.setTextElementBuilder(new LinkTextElementBuilder());
epc.check(sspHandler, compositeLinks, testSolutionHandler);
}
use of org.asqatasun.rules.textbuilder.LinkTextElementBuilder in project Asqatasun by Asqatasun.
the class Rgaa30Rule130201 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
ElementPresenceChecker epc = getElementPresenceChecker();
epc.setTextElementBuilder(new LinkTextElementBuilder());
epc.check(sspHandler, getElements(), testSolutionHandler);
}
use of org.asqatasun.rules.textbuilder.LinkTextElementBuilder in project Asqatasun by Asqatasun.
the class Rgaa32016Rule130201 method check.
@Override
protected void check(SSPHandler sspHandler, TestSolutionHandler testSolutionHandler) {
ElementPresenceChecker epc = getElementPresenceChecker();
epc.setTextElementBuilder(new LinkTextElementBuilder());
epc.check(sspHandler, getElements(), testSolutionHandler);
}
Aggregations