Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertVisible()


    public void testA4JControlInside() {
        testAppFunctionalPage("/components/tabset/tabSet_a4j.jsf");

        element("formID:second_a4j").click();
        ElementInspector onchangePopup = element("formID:onchange_a4j_Popup");
        onchangePopup.assertVisible(true);

        ElementInspector closerButton = element("formID:closer_a4j");
        closerButton.click();
        element("formID:refresher_a4j").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here


        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);
    }

     @Test
    @Ignore
    public void testChartInside() {
View Full Code Here

        tabSet("fn:loadingModes").setTabIndex(2, ServerLoadingMode.getInstance());
        ElementInspector chart = element("fn:first_chartID");
        chart.assertElementExists(false);
        foldingPanel("fn:chartFoldingPanel").toggle().clickAndWait();
        chart.assertElementExists(true);
        chart.assertVisible(true);
    }

     @Test
    public void testConfirmationInside() {
        Selenium selenium = getSelenium();
View Full Code Here

        tabSet("fn:loadingModes").setTabIndex(2, ServerLoadingMode.getInstance());
        ElementInspector dynamicImage = element("fn:dynamicImageID");
        dynamicImage.assertElementExists(false);
        foldingPanel("fn:dynamicImageFoldingPanel").toggle().clickAndWait();
        dynamicImage.assertElementExists(true);
        dynamicImage.assertVisible(true);
    }

     @Test
    @Ignore
    public void testServerFoldingPanelInside() {
View Full Code Here

        headerPopup.assertElementExists(false);

        foldingPanel("fn:popupLayerFoldingPanel").toggle().clickAndWait();

        element("fn:header_invoker").click();
        headerPopup.assertVisible(true);
        headerPopup.assertSubtext(0, 28, "this is popup layer on tab 1");
    }

     @Test
    @Ignore
View Full Code Here

        ElementInspector tabSet = element("fn:tabSetID");
        tabSet.assertElementExists(false);

        foldingPanel("fn:tabSetFoldingPanel").toggle().clickAndWait();
        tabSet.assertElementExists(true);
        tabSet.assertVisible(true);
        element("fn:firstTab").assertText("Client");
        ElementInspector secondTab = element("fn:secondTab");

        secondTab.click();
        secondTab.assertText("Server");
View Full Code Here

        assertFalse(message.elementExists() && message.isVisible());

        foldingPanel("fn:validationFoldingPanel").toggle().clickAndWait();
        requiredInput.assertVisible(true);
        message.assertElementExists(true);
        message.assertVisible(false);

        requiredInput.keyPress(13);
        message.assertVisible(true);
        assertTrue(message.text().contains("Validation Error: Value is required.") ||
                message.text().contains("required_input: Value is required."));
View Full Code Here

        requiredInput.assertVisible(true);
        message.assertElementExists(true);
        message.assertVisible(false);

        requiredInput.keyPress(13);
        message.assertVisible(true);
        assertTrue(message.text().contains("Validation Error: Value is required.") ||
                message.text().contains("required_input: Value is required."));
    }

}
View Full Code Here

        testAppFunctionalPage("/components/foldingpanel/calendarIn.jsf");
        tabSet("fn:loadingModes").setTabIndex(1, ServerLoadingMode.getInstance());

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

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

        calendar.assertElementExists();
        calendar.assertVisible(true);
View Full Code Here

        calendar.assertVisible(false);

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

        calendar.assertElementExists();
        calendar.assertVisible(true);
    }

     @Test
    @Ignore
    public void testChartInside() {
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.