Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertElementExists()


     @Test
    public void testTabSetInside() {
        testAppFunctionalPage("/components/foldingpanel/tabSetIn.jsf");

        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");
View Full Code Here


        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();
View Full Code Here

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

        //check 'server' loading mode
        foldingPanel("formID:serverFP").caption().assertVisible(true);
        ElementInspector serverImage = element("formID:serverImage");
        serverImage.assertElementExists(false);
        ElementInspector serverText = element("formID:serverText");
        serverText.assertElementExists(false);

        FoldingPanelInspector serverFoldingPanel = foldingPanel("formID:serverFP");
        serverFoldingPanel.assertElementExists();
View Full Code Here

        //check 'server' loading mode
        foldingPanel("formID:serverFP").caption().assertVisible(true);
        ElementInspector serverImage = element("formID:serverImage");
        serverImage.assertElementExists(false);
        ElementInspector serverText = element("formID:serverText");
        serverText.assertElementExists(false);

        FoldingPanelInspector serverFoldingPanel = foldingPanel("formID:serverFP");
        serverFoldingPanel.assertElementExists();
        serverFoldingPanel.toggle().clickAndWait();
        serverImage.assertVisible(true);
View Full Code Here

        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");
        clientImage.assertElementExists();
        clientImage.assertVisible(false);
        ElementInspector clientText = element("formID:clientText");
        clientText.assertElementExists();
        clientText.assertVisible(false);
View Full Code Here

        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");
        clientFoldingPanel.assertElementExists();
        clientFoldingPanel.toggle().click();
View Full Code Here

        //check 'ajax' loading mode
        FoldingPanelInspector ajaxFoldingPanel = foldingPanel("formID:ajaxFP");
        ajaxFoldingPanel.caption().assertVisible(true);
        ElementInspector ajaxImage = element("formID:ajaxImage");
        ajaxImage.assertElementExists(false);
        ElementInspector ajaxText = element("formID:ajaxText");
        ajaxText.assertElementExists(false);

        ajaxFoldingPanel.assertElementExists();
        ajaxFoldingPanel.toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
View Full Code Here

        FoldingPanelInspector ajaxFoldingPanel = foldingPanel("formID:ajaxFP");
        ajaxFoldingPanel.caption().assertVisible(true);
        ElementInspector ajaxImage = element("formID:ajaxImage");
        ajaxImage.assertElementExists(false);
        ElementInspector ajaxText = element("formID:ajaxText");
        ajaxText.assertElementExists(false);

        ajaxFoldingPanel.assertElementExists();
        ajaxFoldingPanel.toggle().clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ajaxImage.assertVisible(true);
        ajaxText.assertVisible(true);
View Full Code Here

    public void disabledTestDataTableBeanFetches() throws Exception {
        Selenium selenium = getSelenium();
        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        ElementInspector tr7Element = element("//*[@id='form:colorTable:queryTable']/tbody/tr[7]");
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[2]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[3]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[4]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
 
View Full Code Here

        Selenium selenium = getSelenium();
        liveDemoPage("/datatable/DataTable_handlingLargeData.jsf");
        ElementInspector tr7Element = element("//*[@id='form:colorTable:queryTable']/tbody/tr[7]");
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[2]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[3]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[4]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        tr7Element.assertElementExists(false);
        element("//*[@id='form:colorTable']/thead/tr[1]/td[5]").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
 
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.