Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.text()


    private void checkSelectionChangeListener(LoadingMode loadingMode) {
        testAppFunctionalPage("/components/tabbedpane/tabbedPaneSelectionChangeListener.jsf");

        ElementInspector asAttributeOutputText = element("formID:asAttributeOutput");
        boolean initialValueAsAttribute = Boolean.parseBoolean(asAttributeOutputText.text());
        ElementInspector asTagOutputText = element("formID:asTagOutput");
        boolean initialValueAsTag = Boolean.parseBoolean(asTagOutputText.text());

        TabSetInspector loadingModesTabSet = tabSet("formID:loadingModes");
View Full Code Here


        testAppFunctionalPage("/components/tabbedpane/tabbedPaneSelectionChangeListener.jsf");

        ElementInspector asAttributeOutputText = element("formID:asAttributeOutput");
        boolean initialValueAsAttribute = Boolean.parseBoolean(asAttributeOutputText.text());
        ElementInspector asTagOutputText = element("formID:asTagOutput");
        boolean initialValueAsTag = Boolean.parseBoolean(asTagOutputText.text());

        TabSetInspector loadingModesTabSet = tabSet("formID:loadingModes");

        if (loadingMode instanceof ClientLoadingMode) {
            loadingModesTabSet.tabs().get(1).clickAndWait();
View Full Code Here

        if (loadingMode instanceof  ClientLoadingMode|| loadingMode instanceof OpenFacesAjaxLoadingMode) {
            element("formID:submit").clickAndWait();
        }

        boolean resultantValueAsAttribute = Boolean.parseBoolean(asAttributeOutputText.text());
        boolean resultantValueAsTag = Boolean.parseBoolean(asTagOutputText.text());

        assertEquals(initialValueAsAttribute, !resultantValueAsAttribute);
        assertEquals(initialValueAsTag, !resultantValueAsTag);
    }
View Full Code Here

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

        requiredInput.keyPress(13);
        message.assertVisible(true);
        assertTrue(message.text().contains("Validation Error: Value is required.") ||
                message.text().contains("required_input: Value is required."));
    }

}
View Full Code Here

        message.assertVisible(false);

        requiredInput.keyPress(13);
        message.assertVisible(true);
        assertTrue(message.text().contains("Validation Error: Value is required.") ||
                message.text().contains("required_input: Value is required."));
    }

}
View Full Code Here

                ElementInspector bodyPopup1 = element("fn:popupDataTable:" + rowIndex + ":body_popup1");
                bodyPopup1.assertVisible(true);

                //get text from the invoked popupLayers
                String currentFirstCellValue = bodyPopup.text().substring(0, 9);
                String currentSecondCellValue = bodyPopup1.text().substring(0, 9);

                // compare received values with their reference values
                assertEquals(currentReferenceRow.getFirstColumn(), currentFirstCellValue);
                assertEquals(currentReferenceRow.getSecondColumn(), currentSecondCellValue);
            }
View Full Code Here

    public void testReRenderThroughA4J() {
        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/hintlabel/hintLabel_a4j.jsf");

        ElementInspector hintLabel = element("formID:hintLabelID");
        String oldValue = hintLabel.text();
        hintLabel.mouseOver();
        String oldHintBody = selenium.getBodyText();
        String[] oldHintValue = oldHintBody.split("<!--");
        String oldHint = oldHintValue[0];
        element("formID:refresher").click();
View Full Code Here

        String oldHintBody = selenium.getBodyText();
        String[] oldHintValue = oldHintBody.split("<!--");
        String oldHint = oldHintValue[0];
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        String newValue = hintLabel.text();
        hintLabel.mouseOver();
        String newHintBody = selenium.getBodyText();
        String[] newHintValue = newHintBody.split("<!--");
        String newHint = newHintValue[0];
        assertFalse(newHint.equals(oldHint));
View Full Code Here

            ElementInspector secondBody = element("formID:featuresCombinationDataTableID:" + i + ":featuresCombinationDataTableID_secondBody");
            ElementInspector thirdBody = element("formID:featuresCombinationDataTableID:" + i + ":featuresCombinationDataTableID_thirdBody");
            ElementInspector fourthBody = element("formID:featuresCombinationDataTableID:" + i + ":featuresCombinationDataTableID_fourthBody");

            actualDataAfterComboboxFiltering.add(new DataTableUtils.FeaturesCombinationTestDataTableItem(firstBody.text(),
                    secondBody.text(), thirdBody.text(), fourthBody.text()));

            DataTableUtils.FeaturesCombinationTestDataTableItem featuresCombinationTestDataTableItem =
                    (DataTableUtils.FeaturesCombinationTestDataTableItem) referenceDataAfterComboboxFilter.get(i);
            firstBody.assertText(featuresCombinationTestDataTableItem.getFirstColumn());
            secondBody.assertText(featuresCombinationTestDataTableItem.getSecondColumn());
View Full Code Here

        ElementInspector foldingPanelCaption = element("formID:foldingPanelCaption");
        ElementInspector foldingPanelContent = element("formID:foldingPanelContent");

        String oldCaptionValue = foldingPanelCaption.text();
        String oldContentValue = foldingPanelContent.text();
        foldingPanelToggle.click();
        element("formID:refresher").click();
        RichFacesAjaxLoadingMode.getInstance().waitForLoad();
        foldingPanelToggle.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        String newCaptionValue = foldingPanelCaption.text();
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.