Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertVisible()


        firstCalendar.assertVisible(true);

        element("fn:secondHeader").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ElementInspector secondCalendar = element("fn:secondCalendar");
        secondCalendar.assertElementExists();
        secondCalendar.assertVisible(true);
    }

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


    public void testDynamicImageInside() {
        testAppFunctionalPage("/components/tabbedpane/dynamicImageIn.jsf");

        ElementInspector firstDynamicImage = element("fn:firstDynamicImageID");
        firstDynamicImage.assertElementExists();
        firstDynamicImage.assertVisible(true);

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

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

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

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

     @Test
    public void testAjaxFoldingPanelInside() {
        testAppFunctionalPage("/components/tabbedpane/foldingPanelIn.jsf");
View Full Code Here

     @Test
    public void testAjaxFoldingPanelInside() {
        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");
View Full Code Here

    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();
        headerPopup.assertVisible(true);
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

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

        element("fn:header_invoker1").click();
        headerPopup1.assertVisible(true);
    }

    //todo: uncomment when the  JSFC-3629 is fixed
    @Ignore
     @Test
View Full Code Here

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

        requiredInput.keyPress(13);
View Full Code Here

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

        requiredInput.keyPress(13);
        firstMessage.assertVisible(true);

        element("fn:secondHeader").click();
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        ElementInspector requiredInput1 = element("fn:required_input1");
        requiredInput1.keyPress(13);
View Full Code Here

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

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

        ElementInspector closerButton = element("formID:closer");
        closerButton.click();
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
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.