Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.TabSetInspector.tabs()


    private void featuresCombination(LoadingMode loadingMode) {
        testAppFunctionalPage("/components/datatable/datatableFeaturesCombination.jsf");
        TabSetInspector loadingModes = tabSet("formID:loadingModes");
        if (loadingMode instanceof ServerLoadingMode) {
            loadingModes.tabs().get(1).clickAndWait();
        }

        DataTableInspector combinationDataTable = dataTable("formID:featuresCombinationDataTableID");
        if (loadingMode instanceof ServerLoadingMode) {
            combinationDataTable.setLoadingMode(ServerLoadingMode.getInstance());
View Full Code Here


        element("formID:featuresCombinationDataTableID:0:featuresCombinationDataTableID_fourthBody")
                .assertText(featuresCombinationTestDataTableItem.getFourthColumn());

        if (loadingMode instanceof ServerLoadingMode) {
            // reset tab index for possible further tests
            loadingModes.tabs().get(0).clickAndWait(loadingMode);
        }
    }

    private void checkDataAfterSorting(int rowsQuantity, List<DataTableUtils.FeaturesCombinationTestDataTableItem> actualDataAfterComboboxFiltering) {
        for (int i = 0; i < rowsQuantity; i++) {
View Full Code Here

        // styles verification
        verifyStyles(tabSet, 0);

        /* swicth selected tab and make verifications again */
        tabSet.tabs().get(1).click();
        tabSet.tabs().get(1).mouseOut();
        getSelectedTab1Button.click();
        empty.assertText("1");

        //styles verification
View Full Code Here

        // styles verification
        verifyStyles(tabSet, 0);

        /* swicth selected tab and make verifications again */
        tabSet.tabs().get(1).click();
        tabSet.tabs().get(1).mouseOut();
        getSelectedTab1Button.click();
        empty.assertText("1");

        //styles verification
        verifyStyles(tabSet, 1);
View Full Code Here

        // styles verification
        verifyStyles(tabSet, 0);

        /* swicth selected tab and make verifications again */
        tabSet.tabs().get(1).mouseOut();
        tabSet.tabs().get(1).clickAndWait();

        getSelectedTab2Button.click();
        empty1.assertText("1");

View Full Code Here

        // styles verification
        verifyStyles(tabSet, 0);

        /* swicth selected tab and make verifications again */
        tabSet.tabs().get(1).mouseOut();
        tabSet.tabs().get(1).clickAndWait();

        getSelectedTab2Button.click();
        empty1.assertText("1");

        selectedIndex.assertText("1");
View Full Code Here

     @Test
    public void testSelectionChangeListener() {
        testAppFunctionalPage("/components/tabset/tabSetChangeListeners.jsf");

        TabSetInspector attributeTabSet = tabSet("formID:selectionChangeListenerAttributeWithoutSubmit");
        attributeTabSet.tabs().get(1).click();
        TabSetInspector tagTabSet = tabSet("formID:selectionChangeListenerTagWithoutSubmit");
        tagTabSet.tabs().get(1).click();

        ElementInspector submit = element("formID:submit");
        submit.clickAndWait();
View Full Code Here

        testAppFunctionalPage("/components/tabset/tabSetChangeListeners.jsf");

        TabSetInspector attributeTabSet = tabSet("formID:selectionChangeListenerAttributeWithoutSubmit");
        attributeTabSet.tabs().get(1).click();
        TabSetInspector tagTabSet = tabSet("formID:selectionChangeListenerTagWithoutSubmit");
        tagTabSet.tabs().get(1).click();

        ElementInspector submit = element("formID:submit");
        submit.clickAndWait();

        ElementInspector out3Element = element("formID:out3");
View Full Code Here

        out3Element.assertText("true");
        ElementInspector out4Element = element("formID:out4");
        out4Element.assertText("true");

        attributeTabSet.tabs().get(0).click();
        tagTabSet.tabs().get(0).click();

        submit.clickAndWait();

        out3Element.assertText("false");
        out4Element.assertText("false");
View Full Code Here

    // todo: works locally, but investigate why it fails on the server
    public void testDateChooserTabSetValidation() {
        liveDemoPage("/datechooser/DateChooser.jsf");
        TabSetInspector localeSelector = tabSet("dcForm:localeSelector");
        assertEquals(0, localeSelector.getTabIndex());
        localeSelector.tabs().get(1).click();
        waitForPageToLoad();
        assertEquals(1, localeSelector.getTabIndex());
        localeSelector.tabs().get(2).click();
        waitForPageToLoad();
        assertEquals(2, localeSelector.getTabIndex());
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.