Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertText()


        ElementInspector selectedIndex = element("formID:selectedIndex");
        ElementInspector selectedValue = element("formID:selectedValue");

        empty1.assertText("0");
        selectedIndex.assertText("0");
        selectedValue.assertText("Blue");

        // styles verification
        verifyStyles(tabSet, 0);

        /* swicth selected tab and make verifications again */
 
View Full Code Here


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

        selectedIndex.assertText("1");
        selectedValue.assertText("Yellow");

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

        //check getSelectedIndex() for both TabSets
        ElementInspector getSelectedTab1Button = element("getSelectedTab1");
        getSelectedTab1Button.click();

        ElementInspector emptyDiv = element("empty");
        emptyDiv.assertText("0");
        verifyStyles(tabSetWithoutSubmit, 0);

        ElementInspector getSelectedTab2Button = element("getSelectedTab2");
        getSelectedTab2Button.click();
        ElementInspector empty1Div = element("empty1");
View Full Code Here

        verifyStyles(tabSetWithoutSubmit, 0);

        ElementInspector getSelectedTab2Button = element("getSelectedTab2");
        getSelectedTab2Button.click();
        ElementInspector empty1Div = element("empty1");
        empty1Div.assertText("0");
        verifyStyles(tabSetWithSubmit, 0);
        ElementInspector selectedIndexOutput = element("formID:selectedIndex");
        selectedIndexOutput.assertText("0");
        ElementInspector selectedValueOutput = element("formID:selectedValue");
        selectedValueOutput.assertText("Blue");
View Full Code Here

        getSelectedTab2Button.click();
        ElementInspector empty1Div = element("empty1");
        empty1Div.assertText("0");
        verifyStyles(tabSetWithSubmit, 0);
        ElementInspector selectedIndexOutput = element("formID:selectedIndex");
        selectedIndexOutput.assertText("0");
        ElementInspector selectedValueOutput = element("formID:selectedValue");
        selectedValueOutput.assertText("Blue");

        // check setSelectedIndex() for both TabSets
        element("setSelectedTab1").click();
View Full Code Here

        empty1Div.assertText("0");
        verifyStyles(tabSetWithSubmit, 0);
        ElementInspector selectedIndexOutput = element("formID:selectedIndex");
        selectedIndexOutput.assertText("0");
        ElementInspector selectedValueOutput = element("formID:selectedValue");
        selectedValueOutput.assertText("Blue");

        // check setSelectedIndex() for both TabSets
        element("setSelectedTab1").click();
        getSelectedTab1Button.click();
        emptyDiv.assertText("1");
View Full Code Here

        element("setSelectedTab2").clickAndWait();
        getSelectedTab2Button.click();
        empty1Div.assertText("1");
        verifyStyles(tabSetWithSubmit, 1);
        selectedIndexOutput.assertText("1");
        selectedValueOutput.assertText("Yellow");
    }

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

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

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

        attributeTabSet.tabs().get(0).click();
        tagTabSet.tabs().get(0).click();
View Full Code Here

        submit.clickAndWait();

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

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

        submit.clickAndWait();
View Full Code Here

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

        submit.clickAndWait();

        out3Element.assertText("false");
        out4Element.assertText("false");
    }

    //todo: fill the method body if 'JSFC-2994' is in 'fixed' state
     @Test
    public void testValueChangeListener() {
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.