Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertElementExists()


    public void testValidationInside() {
        testAppFunctionalPage("/components/foldingpanel/validationIn.jsf");
        tabSet("fn:loadingModes").setTabIndex(1, ServerLoadingMode.getInstance());

        ElementInspector requiredInput = element("fn:required_input");
        requiredInput.assertElementExists();
        requiredInput.assertVisible(false);

        ElementInspector message = element("fn:validationMessage");
        message.assertElementExists();
        message.assertVisible(false);
View Full Code Here


        ElementInspector requiredInput = element("fn:required_input");
        requiredInput.assertElementExists();
        requiredInput.assertVisible(false);

        ElementInspector message = element("fn:validationMessage");
        message.assertElementExists();
        message.assertVisible(false);

        foldingPanel("fn:validationFoldingPanel").toggle().click();

        requiredInput.assertVisible(true);
View Full Code Here

     @Test
    public void testTabbedPaneAjax() throws Exception {
        testAppFunctionalPage("/components/tabbedpane/tabbedPaneAjax.jsf");
        ElementInspector tab1Output = element("form1:tab1Output");
        tab1Output.assertElementExists(true);
        ElementInspector tab2Output = element("form1:tab2Output");
        tab2Output.assertElementExists(false);
        ElementInspector tab3Output = element("form1:tab3Output");
        tab3Output.assertElementExists(false);
        ElementInspector tab4Output = element("form1:tab4Output");
View Full Code Here

    public void testTabbedPaneAjax() throws Exception {
        testAppFunctionalPage("/components/tabbedpane/tabbedPaneAjax.jsf");
        ElementInspector tab1Output = element("form1:tab1Output");
        tab1Output.assertElementExists(true);
        ElementInspector tab2Output = element("form1:tab2Output");
        tab2Output.assertElementExists(false);
        ElementInspector tab3Output = element("form1:tab3Output");
        tab3Output.assertElementExists(false);
        ElementInspector tab4Output = element("form1:tab4Output");
        tab4Output.assertElementExists(false);
        List<ElementInspector> tabs = tabbedPane("form1:tp1").tabSet().tabs();
View Full Code Here

        ElementInspector tab1Output = element("form1:tab1Output");
        tab1Output.assertElementExists(true);
        ElementInspector tab2Output = element("form1:tab2Output");
        tab2Output.assertElementExists(false);
        ElementInspector tab3Output = element("form1:tab3Output");
        tab3Output.assertElementExists(false);
        ElementInspector tab4Output = element("form1:tab4Output");
        tab4Output.assertElementExists(false);
        List<ElementInspector> tabs = tabbedPane("form1:tp1").tabSet().tabs();
        tabs.get(1).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tab2Output.assertElementExists(true);
View Full Code Here

        ElementInspector tab2Output = element("form1:tab2Output");
        tab2Output.assertElementExists(false);
        ElementInspector tab3Output = element("form1:tab3Output");
        tab3Output.assertElementExists(false);
        ElementInspector tab4Output = element("form1:tab4Output");
        tab4Output.assertElementExists(false);
        List<ElementInspector> tabs = tabbedPane("form1:tp1").tabSet().tabs();
        tabs.get(1).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tab2Output.assertElementExists(true);
        tabs.get(2).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tab3Output.assertElementExists(true);
View Full Code Here

        tabs.get(1).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tab2Output.assertElementExists(true);
        tabs.get(2).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tab3Output.assertElementExists(true);
        tabs.get(3).clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tab4Output.assertElementExists(true);
        tabs.get(0).click();
        tab1Output.assertElementExists(true);
    }

    @Ignore
View Full Code Here

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

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

     @Test
    public void testConfirmationInside() {
View Full Code Here

     @Test
    public void testAjaxTabbedPaneInside() {
        testAppFunctionalPage("/components/foldingpanel/tabbedPaneIn.jsf");

        ElementInspector tabbedPane = element("fn:tabbedPaneID");
        tabbedPane.assertElementExists(false);

        foldingPanel("fn:tabbedPaneFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tabbedPane.assertElementExists(true);
        tabbedPane.assertVisible(true);
        element("fn:firstHeader").assertText("First tab");
View Full Code Here

        ElementInspector tabbedPane = element("fn:tabbedPaneID");
        tabbedPane.assertElementExists(false);

        foldingPanel("fn:tabbedPaneFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tabbedPane.assertElementExists(true);
        tabbedPane.assertVisible(true);
        element("fn:firstHeader").assertText("First tab");
        element("fn:firstContent").assertText("Some text on the first tab");
        ElementInspector secondHeader = element("fn:secondHeader");
        secondHeader.assertText("Second tab");
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.