Package com.gargoylesoftware.htmlunit.html

Examples of com.gargoylesoftware.htmlunit.html.HtmlDivision


    }

    @Test
    public void testAjaxClick() throws IOException, SAXException {
        HtmlPage page = environment.getPage("/dropDownMenu_ajaxMode.jsf");
        HtmlDivision item = (HtmlDivision) page.getElementById("form:saveAll");
        assertNotNull(item);
        DropDownMenuBean.setCurrent("none");
        item.click();

        item = (HtmlDivision) page.getElementById("form:saveAll");
        assertNotNull(item);
        assertEquals("action", DropDownMenuBean.getCurrent());
    }
View Full Code Here


    @Test
    @Ignore // broke with the jQuery 1.6.2 upgrade
    public void testServerClick() throws IOException, SAXException {
        HtmlPage page = environment.getPage("/menuItem_serverMode.jsf");

        HtmlDivision item = (HtmlDivision) page.getElementById("form:menuItem");
        assertNotNull(item);
        DropDownMenuBean.setCurrent("none");
        item.click();

        item = (HtmlDivision) page.getElementById("form:menuItem");
        assertNotNull(item);
        assertEquals("action", DropDownMenuBean.getCurrent());
    }
View Full Code Here

    }

    @Test
    public void testAjaxClick() throws IOException, SAXException {
        HtmlPage page = environment.getPage("/menuItem_ajaxMode.jsf");
        HtmlDivision item = (HtmlDivision) page.getElementById("form:menuItem");
        assertNotNull(item);
        DropDownMenuBean.setCurrent("none");
        item.click();
        item = (HtmlDivision) page.getElementById("form:menuItem");
        assertNotNull(item);
        assertEquals("action", DropDownMenuBean.getCurrent());
    }
View Full Code Here

    }

    @Test
    public void testClientClick() throws IOException, SAXException {
        HtmlPage page = environment.getPage("/menuItem_clientMode.jsf");
        HtmlDivision item = (HtmlDivision) page.getElementById("form:menuItem");
        assertNotNull(item);
        DropDownMenuBean.setCurrent("none");
        item.click();

        item = (HtmlDivision) page.getElementById("form:menuItem");
        assertNotNull(item);
        assertEquals("none", DropDownMenuBean.getCurrent());
    }
View Full Code Here

TOP

Related Classes of com.gargoylesoftware.htmlunit.html.HtmlDivision

Copyright © 2018 www.massapicom. 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.