Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertText()


        ElementInspector secondBody = element("formID:filterableDataTable_comboBox:0:filterableDataTable_comboBox_secondBody");
        secondBody.assertVisible(true);

        //compare filtered row with the reference values
        firstBody.assertText(referenceFilteredRow.getFirstColumn());
        secondBody.assertText(referenceFilteredRow.getSecondColumn());

        for (int i = 1; i < 9; i++) {
            element("formID:filterableDataTable_comboBox:" + i + ":filterableDataTable_comboBox_firstBody")
                    .assertElementExists(false);
            element("formID:filterableDataTable_comboBox:" + i + ":filterableDataTable_comboBox_secondBody")
View Full Code Here


        tabbedPane.assertElementExists(true);
        tabbedPane.assertVisible(true);
        element("fn:firstHeader").assertText("First tab");
        element("fn:firstContent").assertText("Some text on the first tab");
        ElementInspector secondHeader = element("fn:secondHeader");
        secondHeader.assertText("Second tab");

        secondHeader.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        element("fn:secondContent").assertText("Some text on the second tab");
    }
View Full Code Here

                ElementInspector secondBody = element("formID:filterableDataTable_dropDownField:0:filterableDataTable_dropDownField_secondBody");
                secondBody.assertVisible(true);

                //compare filtered row with the reference values
                firstBody.assertText(referenceFilteredRow.getFirstColumn());
                secondBody.assertText(referenceFilteredRow.getSecondColumn());
            } else {
                element("formID:filterableDataTable_dropDownField:" + i + ":filterableDataTable_dropDownField_firstBody")
                        .assertElementExists(false);
                element("formID:filterableDataTable_dropDownField:" + i + ":filterableDataTable_dropDownField_secondBody")
                        .assertElementExists(false);
View Full Code Here

        tabSet.assertVisible(true);
        element("fn:firstTab").assertText("Client");
        ElementInspector secondTab = element("fn:secondTab");

        secondTab.click();
        secondTab.assertText("Server");
    }

    //todo: selection test is absent
     @Test
    public void testTreeTableInside() {
View Full Code Here

            DataTableUtils.FeaturesCombinationTestDataTableItem featuresCombinationTestDataTableItem =
                    (DataTableUtils.FeaturesCombinationTestDataTableItem) referenceDataAfterComboboxFilter.get(i);
            firstBody.assertText(featuresCombinationTestDataTableItem.getFirstColumn());
            secondBody.assertText(featuresCombinationTestDataTableItem.getSecondColumn());
            thirdBody.assertText(featuresCombinationTestDataTableItem.getThirdColumn());
            fourthBody.assertText(featuresCombinationTestDataTableItem.getFourthColumn());
        }

        //select first row
        element("formID:featuresCombinationDataTableID:0:featuresCombinationDataTableID_firstBody").click();
        combinationDataTable.checkSelectedIndex(0);
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");
        clientImage.assertElementExists();
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);
        ElementInspector ajaxImage = element("formID:ajaxImage");
View Full Code Here

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

        ElementInspector dateChooserMessage = element("testForm:dchOnSubmitInput");
        dateChooserMessage.assertContainsText("Value is required.");
        ElementInspector doubleRangeMessage = element("testForm:ValidDROnSubmitMessage");
        doubleRangeMessage.assertContainsText("Validation Error");
        ElementInspector urlMessage = element("testForm:UrlOnSubmitMessage");
        urlMessage.assertText("Validation error occurs Entered value is not url");
        ElementInspector inputOffMessage = element("testForm:inputOffMessage");
        inputOffMessage.assertText("");
        ElementInspector dateChooserOffMessage = element("testForm:dchOffInput");
        dateChooserOffMessage.assertText("");
        ElementInspector dateRangeOffMessage = element("testForm:ValidDROffMessage");
View Full Code Here

        ElementInspector doubleRangeMessage = element("testForm:ValidDROnSubmitMessage");
        doubleRangeMessage.assertContainsText("Validation Error");
        ElementInspector urlMessage = element("testForm:UrlOnSubmitMessage");
        urlMessage.assertText("Validation error occurs Entered value is not url");
        ElementInspector inputOffMessage = element("testForm:inputOffMessage");
        inputOffMessage.assertText("");
        ElementInspector dateChooserOffMessage = element("testForm:dchOffInput");
        dateChooserOffMessage.assertText("");
        ElementInspector dateRangeOffMessage = element("testForm:ValidDROffMessage");
        dateRangeOffMessage.assertText("");
        ElementInspector urlOffMessage = element("testForm:UrlOffMessage");
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.