Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertElementExists()


        ElementInspector tr7Element = element("//*[@id='form:colorTable:queryTable']/tbody/tr[7]");
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[2]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[3]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[4]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[5]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[6]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
 
View Full Code Here


        element("//*[@id='form:colorTable']/thead/tr[1]/td[2]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[3]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[4]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[5]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[6]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);

View Full Code Here

        element("//*[@id='form:colorTable']/thead/tr[1]/td[3]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[4]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[5]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[6]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);

        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        selenium.type("form:colorTable:name--search_field_o_auto_filter--searchComponent", "white");
View Full Code Here

        element("//*[@id='form:colorTable']/thead/tr[1]/td[4]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[5]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[6]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);

        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        selenium.type("form:colorTable:name--search_field_o_auto_filter--searchComponent", "white");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        tr7Element.assertElementExists(false);
View Full Code Here

        tr7Element.assertElementExists(false);

        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        selenium.type("form:colorTable:name--search_field_o_auto_filter--searchComponent", "white");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        tr7Element.assertElementExists(false);
        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        dataTablePaginator("form:colorTable:paginator").nextPage().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
    }
View Full Code Here

        selenium.type("form:colorTable:name--search_field_o_auto_filter--searchComponent", "white");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        tr7Element.assertElementExists(false);
        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        dataTablePaginator("form:colorTable:paginator").nextPage().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
    }


}
View Full Code Here

     @Test
    public void testCalendarInside() {
        testAppFunctionalPage("/components/foldingpanel/calendarIn.jsf");

        ElementInspector calendar = element("fn:calendarID");
        calendar.assertElementExists(false);

        foldingPanel("fn:calendarFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        assertFalse(getSelenium().isAlertPresent());
        calendar.assertElementExists(true);
        if (isAlertPresent()) {
View Full Code Here

        ElementInspector calendar = element("fn:calendarID");
        calendar.assertElementExists(false);

        foldingPanel("fn:calendarFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        assertFalse(getSelenium().isAlertPresent());
        calendar.assertElementExists(true);
        if (isAlertPresent()) {
            acceptAlert();
        }
    }
View Full Code Here

     @Test
    public void testChartInside() {
        testAppFunctionalPage("/components/foldingpanel/chartIn.jsf");

        ElementInspector chart = element("fn:first_chartID");
        chart.assertElementExists(false);

        foldingPanel("fn:chartFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        chart.assertElementExists(true);
        chart.assertVisible(true);
    }
View Full Code Here

        outputElement = forEach.item(2, "hot1");
        outputElement.assertElementExists();
        outputElement.assertText("c. ");

        inputElement = forEach.item(2, "qit1");
        inputElement.assertElementExists();
        inputElement.assertAttribute("value", "item C");

        outputElement = forEach.item(3, "hot1");
        outputElement.assertElementExists(false);
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.