Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertElementExists()


        ElementInspector secondDynamicImage = element("fn:secondDynamicImageID");
        secondDynamicImage.assertElementExists(false);

        element("fn:secondTabID").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        secondDynamicImage.assertElementExists();
        secondDynamicImage.assertVisible(true);
    }

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


        testAppFunctionalPage("/components/tabbedpane/foldingPanelIn.jsf");

        ElementInspector firstFoldingPanelCaption = element("fn:firstFoldingPanelCaption");
        firstFoldingPanelCaption.assertVisible(true);
        ElementInspector firstFoldingPanelContent = element("fn:firstFoldingPanelContent");
        firstFoldingPanelContent.assertElementExists(false);
        ElementInspector secondFoldingPanelCaption = element("fn:secondFoldingPanelCaption");
        secondFoldingPanelCaption.assertElementExists(false);
        ElementInspector secondFoldingPanelContent = element("fn:secondFoldingPanelContent");
        secondFoldingPanelCaption.assertElementExists(false);
View Full Code Here

        ElementInspector firstFoldingPanelCaption = element("fn:firstFoldingPanelCaption");
        firstFoldingPanelCaption.assertVisible(true);
        ElementInspector firstFoldingPanelContent = element("fn:firstFoldingPanelContent");
        firstFoldingPanelContent.assertElementExists(false);
        ElementInspector secondFoldingPanelCaption = element("fn:secondFoldingPanelCaption");
        secondFoldingPanelCaption.assertElementExists(false);
        ElementInspector secondFoldingPanelContent = element("fn:secondFoldingPanelContent");
        secondFoldingPanelCaption.assertElementExists(false);

        foldingPanel("fn:firstFoldingPanelID").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        firstFoldingPanelContent.assertVisible(true);
View Full Code Here

        foldingPanel("fn:firstFoldingPanelID").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        firstFoldingPanelContent.assertVisible(true);

        element("fn:secondTabID").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        secondFoldingPanelCaption.assertVisible(true);
        secondFoldingPanelContent.assertElementExists(false);

        foldingPanel("fn:secondFoldingPanelID").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        secondFoldingPanelContent.assertElementExists();
    }
View Full Code Here

        element("fn:secondTabID").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        secondFoldingPanelCaption.assertVisible(true);
        secondFoldingPanelContent.assertElementExists(false);

        foldingPanel("fn:secondFoldingPanelID").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        secondFoldingPanelContent.assertElementExists();
    }

     @Test
    public void testHintLabelInside() throws InterruptedException {
        closeBrowser();
View Full Code Here

     @Test
    public void testPopupLayerInside() {
        testAppFunctionalPage("/components/tabbedpane/popupLayerIn.jsf");

        ElementInspector headerPopup = element("fn:header_popup");
        headerPopup.assertElementExists();
        headerPopup.assertVisible(false);
        ElementInspector headerPopup1 = element("fn:header_popup1");
        headerPopup1.assertElementExists(false);

        element("fn:header_invoker").click();
View Full Code Here

        ElementInspector headerPopup = element("fn:header_popup");
        headerPopup.assertElementExists();
        headerPopup.assertVisible(false);
        ElementInspector headerPopup1 = element("fn:header_popup1");
        headerPopup1.assertElementExists(false);

        element("fn:header_invoker").click();
        headerPopup.assertVisible(true);

        element("fn:secondTabID").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
View Full Code Here

        element("fn:header_invoker").click();
        headerPopup.assertVisible(true);

        element("fn:secondTabID").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        headerPopup1.assertElementExists();
        headerPopup1.assertVisible(false);

        element("fn:header_invoker1").click();
        headerPopup1.assertVisible(true);
    }
View Full Code Here

     @Test
    public void _testValidationInsideAjaxTabbedPane() {
        testAppFunctionalPage("/components/tabbedpane/validationIn.jsf");

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

        ElementInspector firstMessage = element("fn:first_messageID");
        assertFalse(firstMessage.elementExists() && firstMessage.isVisible());
View Full Code Here

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

        tabSet("fn:loadingModes").setTabIndex(2, ServerLoadingMode.getInstance());
        ElementInspector calendar = element("fn:calendarID");
        calendar.assertElementExists(false);
        foldingPanel("fn:calendarFoldingPanel").toggle().clickAndWait();
        calendar.assertElementExists(true);
        calendar.assertVisible(true);
    }
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.