Search in sources :

Example 1 with LinkTextElementBuilder

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);
}
Also used : ElementPresenceChecker(org.asqatasun.rules.elementchecker.element.ElementPresenceChecker) LinkTextElementBuilder(org.asqatasun.rules.textbuilder.LinkTextElementBuilder)

Example 2 with LinkTextElementBuilder

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);
}
Also used : ElementPresenceChecker(org.asqatasun.rules.elementchecker.element.ElementPresenceChecker) LinkTextElementBuilder(org.asqatasun.rules.textbuilder.LinkTextElementBuilder)

Example 3 with LinkTextElementBuilder

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);
}
Also used : ElementPresenceChecker(org.asqatasun.rules.elementchecker.element.ElementPresenceChecker) LinkTextElementBuilder(org.asqatasun.rules.textbuilder.LinkTextElementBuilder)

Example 4 with LinkTextElementBuilder

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);
}
Also used : ElementPresenceChecker(org.asqatasun.rules.elementchecker.element.ElementPresenceChecker) LinkTextElementBuilder(org.asqatasun.rules.textbuilder.LinkTextElementBuilder)

Example 5 with LinkTextElementBuilder

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);
}
Also used : ElementPresenceChecker(org.asqatasun.rules.elementchecker.element.ElementPresenceChecker) LinkTextElementBuilder(org.asqatasun.rules.textbuilder.LinkTextElementBuilder)

Aggregations

ElementPresenceChecker (org.asqatasun.rules.elementchecker.element.ElementPresenceChecker)5 LinkTextElementBuilder (org.asqatasun.rules.textbuilder.LinkTextElementBuilder)5