Package com.gargoylesoftware.htmlunit.html

Examples of com.gargoylesoftware.htmlunit.html.HtmlElement.click()


        // dataScroller inside dataTable 'footer' facet
        String secondScrollerId = "richTable:scroller2";

        HtmlElement last = getLastButton(page, secondScrollerId);
        last.click();
        checkLastPageButtons(page, firstScrollerId, secondScrollerId);

        HtmlElement first = getFirstButton(page, secondScrollerId);
        first.click();
        checkFirstPageButtons(page, firstScrollerId, secondScrollerId);
View Full Code Here


        HtmlElement last = getLastButton(page, secondScrollerId);
        last.click();
        checkLastPageButtons(page, firstScrollerId, secondScrollerId);

        HtmlElement first = getFirstButton(page, secondScrollerId);
        first.click();
        checkFirstPageButtons(page, firstScrollerId, secondScrollerId);
    }

    @Test
    @Ignore // broke with the jQuery 1.6.2 upgrade
View Full Code Here

        String secondScrollerId = "richTable:scroller2";

        for (int i = 2; i <= 5; i++) {
            HtmlElement next = getNextButton(page, firstScrollerId);

            next.click();

            HtmlElement currentDigital1 = getDigitalButton(page, firstScrollerId, i);
            assertEquals("span", currentDigital1.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital1.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());
View Full Code Here

        checkLastPageButtons(page, firstScrollerId, secondScrollerId);

        // scroll back
        for (int i = 4; i >= 1; i--) {
            HtmlElement previous = getPreviousButton(page, firstScrollerId);
            previous.click();
            HtmlElement currentDigital1 = getDigitalButton(page, firstScrollerId, i);

            assertEquals("span", currentDigital1.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital1.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());
View Full Code Here

        // dataScroller inside dataTable 'footer' facet
        String secondScrollerId = "richTable:scroller2";

        for (int i = 2; i <= 5; i++) {
            HtmlElement next = getNextButton(page, secondScrollerId);
            next.click();
            HtmlElement currentDigital2 = getDigitalButton(page, secondScrollerId, i);
            assertEquals("span", currentDigital2.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital2.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());

            // if scroller outside dataTable has switched
View Full Code Here

        checkLastPageButtons(page, firstScrollerId, secondScrollerId);

        // scroll back
        for (int i = 4; i >= 1; i--) {
            HtmlElement previous = getPreviousButton(page, secondScrollerId);
            previous.click();

            HtmlElement currentDigital2 = getDigitalButton(page, secondScrollerId, i);
            assertEquals("span", currentDigital2.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital2.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());
View Full Code Here

        String secondScrollerId = "richTable:scroller2";

        for (int i = 3; i <= 5; i = i + 2) {
            HtmlElement ff = getFastForwardButton(page, firstScrollerId);

            ff.click();

            HtmlElement currentDigital1 = getDigitalButton(page, firstScrollerId, i);
            assertEquals("span", currentDigital1.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital1.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());
View Full Code Here

        checkLastPageButtons(page, firstScrollerId, secondScrollerId);

        // scroll back
        for (int i = 3; i >= 1; i = i - 2) {
            HtmlElement fr = getFastRewindButton(page, firstScrollerId);
            fr.click();
            HtmlElement currentDigital1 = getDigitalButton(page, firstScrollerId, i);

            assertEquals("span", currentDigital1.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital1.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());
View Full Code Here

        // dataScroller inside dataTable 'footer' facet
        String secondScrollerId = "richTable:scroller2";

        for (int i = 3; i <= 5; i = i + 2) {
            HtmlElement ff = getFastForwardButton(page, secondScrollerId);
            ff.click();
            HtmlElement currentDigital2 = getDigitalButton(page, secondScrollerId, i);
            assertEquals("span", currentDigital2.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital2.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());

            // if scroller outside dataTable has switched
View Full Code Here

        checkLastPageButtons(page, firstScrollerId, secondScrollerId);

        // scroll back
        for (int i = 3; i >= 1; i = i - 2) {
            HtmlElement fr = getFastRewindButton(page, secondScrollerId);
            fr.click();

            HtmlElement currentDigital2 = getDigitalButton(page, secondScrollerId, i);
            assertEquals("span", currentDigital2.getNodeName());
            assertEquals("rf-ds-nmb-btn rf-ds-act", currentDigital2.getAttribute(HtmlConstants.CLASS_ATTRIBUTE).trim());
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.