Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertVisible()


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

        foldingPanel("fn:tabSetFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        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


        ElementInspector message = element("fn:validationMessage");
        assertFalse(message.elementExists() && message.isVisible());

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

        requiredInput.keyPress(13);

        message.assertVisible(true);
        message.assertContainsText("Value is required.");
View Full Code Here

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

        requiredInput.keyPress(13);

        message.assertVisible(true);
        message.assertContainsText("Value is required.");
    }

}
View Full Code Here

        FoldingPanelInspector serverFoldingPanel = foldingPanel("formID:serverFP");
        serverFoldingPanel.assertElementExists();
        serverFoldingPanel.toggle().clickAndWait();
        serverImage.assertVisible(true);
        serverText.assertVisible(true);
        serverText.assertText("test server loading mode");

        //check 'client' loading mode
        element("formID:clientFP::caption").assertVisible(true); //todo: use FoldingPanelInspector in such cases
        ElementInspector clientImage = element("formID:clientImage");
View Full Code Here

        //check 'client' loading mode
        element("formID:clientFP::caption").assertVisible(true); //todo: use FoldingPanelInspector in such cases
        ElementInspector clientImage = element("formID:clientImage");
        clientImage.assertElementExists();
        clientImage.assertVisible(false);
        ElementInspector clientText = element("formID:clientText");
        clientText.assertElementExists();
        clientText.assertVisible(false);

        FoldingPanelInspector clientFoldingPanel = foldingPanel("formID:clientFP");
View Full Code Here

        ElementInspector clientImage = element("formID:clientImage");
        clientImage.assertElementExists();
        clientImage.assertVisible(false);
        ElementInspector clientText = element("formID:clientText");
        clientText.assertElementExists();
        clientText.assertVisible(false);

        FoldingPanelInspector clientFoldingPanel = foldingPanel("formID:clientFP");
        clientFoldingPanel.assertElementExists();
        clientFoldingPanel.toggle().click();
        clientImage.assertVisible(true);
View Full Code Here

        FoldingPanelInspector clientFoldingPanel = foldingPanel("formID:clientFP");
        clientFoldingPanel.assertElementExists();
        clientFoldingPanel.toggle().click();
        clientImage.assertVisible(true);
        clientText.assertVisible(true);
        clientText.assertText("test client loading mode");

        //check 'ajax' loading mode
        FoldingPanelInspector ajaxFoldingPanel = foldingPanel("formID:ajaxFP");
        ajaxFoldingPanel.caption().assertVisible(true);
View Full Code Here

        ajaxText.assertElementExists(false);

        ajaxFoldingPanel.assertElementExists();
        ajaxFoldingPanel.toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ajaxImage.assertVisible(true);
        ajaxText.assertVisible(true);
        ajaxText.assertText("test ajax loading mode");

        /*check that content loaded once*/
        //collapse all FoldingPanels
        serverFoldingPanel.toggle().click();
View Full Code Here

        clientImage.assertVisible(true);
        clientText.assertVisible(true);

        ajaxFoldingPanel.toggle().click();
        ajaxImage.assertVisible(true);
        ajaxText.assertVisible(true);
    }

     @Test
    public void testStyles() {
        testAppFunctionalPage("/components/foldingpanel/foldingPanelStyles.jsf");
View Full Code Here

        element("confirmationForm:buttonInvoker1").click();
        element("confirmationForm:buttonPopup1").assertVisible(true);

        element("confirmationForm:buttonInvoker").click();
        ElementInspector buttonPopup = element("confirmationForm:buttonPopup");
        buttonPopup.assertVisible(false);
        ConfirmationInspector buttonConfirmation = confirmation("confirmationForm:buttonConfirmation");
        buttonConfirmation.assertVisible(true);
        buttonConfirmation.okButton().click();
        buttonPopup.assertVisible(true);
        buttonConfirmation.assertVisible(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.