Examples of assertElementExists()


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

Examples of org.seleniuminspector.ElementInspector.assertElementExists()

        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

Examples of org.seleniuminspector.ElementInspector.assertElementExists()

        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

Examples of org.seleniuminspector.ElementInspector.assertElementExists()

        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

Examples of org.seleniuminspector.ElementInspector.assertElementExists()

        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

Examples of org.seleniuminspector.ElementInspector.assertElementExists()

     @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

Examples of org.seleniuminspector.openfaces.BorderLayoutPanelInspector.assertElementExists()

    public void testRendering() {
        testAppFunctionalPage("/components/borderlayoutpanel/borderLayoutPanelft.jsf");

//test positions & sizes
        BorderLayoutPanelInspector borderLayoutPanel = borderLayoutPanel("formID:borderLayoutPanel00");
        borderLayoutPanel.assertElementExists();
        borderLayoutPanel.assertExpressionEquals("offsetWidth", 600);
        borderLayoutPanel.assertExpressionEquals("offsetHeight", 400);

        ElementInspector sidePanel01 = element("formID:sidePanel01");
        sidePanel01.assertElementExists();
View Full Code Here

Examples of org.seleniuminspector.openfaces.ConfirmationInspector.assertElementExists()

        testAppFunctionalPage("/components/sessionexpiration/rawTesting.jsf");

        element("//img[1]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        ConfirmationInspector confirmation = confirmation("formID:openfaces_internal_sessionexpiration_confirmation");
        confirmation.assertElementExists();
        confirmation.okButton().assertElementExists();

        confirmation.okButton().clickAndWait();
        confirmation.assertElementExists(false);
View Full Code Here

Examples of org.seleniuminspector.openfaces.ConfirmationInspector.assertElementExists()

        ConfirmationInspector confirmation = confirmation("formID:openfaces_internal_sessionexpiration_confirmation");
        confirmation.assertElementExists();
        confirmation.okButton().assertElementExists();

        confirmation.okButton().clickAndWait();
        confirmation.assertElementExists(false);

//     Selenium selenium = getSelenium();
//    testAppFunctionalPage("/components/sessionexpiration/rawTesting.jsf");
//
//    selenium.click("document.getElementsByTagName('img').item(0);");
View Full Code Here

Examples of org.seleniuminspector.openfaces.DateChooserInspector.assertElementExists()

        testAppFunctionalPage("/components/foldingpanel/dropDownIn.jsf");

        foldingPanel("fn:dropDownFoldingPanel").toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

        DateChooserInspector dateChooser = dateChooser("fn:dropDownID");
        dateChooser.assertElementExists();
        dateChooser.button().click();
        dateChooser.popup().items().get(1).click();
        dateChooser.field().assertValue("Yellow");
    }
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.