Examples of clickAndWait()


Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        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");
    }

     @Test
    public void testTabSetInside() {
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        first.assertValue("");
        second.assertValue("");
//        second.fireEvent("onblur");
        value.click(); // onblur
        second.assertValue("some prompt text");
        submit.clickAndWait();
        value.assertText("");
        value2.assertText("");
        first.assertValue("");
        second.assertValue("some prompt text");
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        second.clear();
        first.type("val1");
        first.assertValue("val1");
        second.type("val2");
        second.assertValue("val2");
        submit.clickAndWait();
        value.assertText("val1");
        value2.assertText("val2");
        first.assertValue("val1");
        second.assertValue("val2");
    }
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        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");
    }

     @Test
    public void testTabSetInside() {
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

public class FoldingPanelTest extends OpenFacesTestCase {
     @Test
    public void testReRenderThroughA4J() {
        testAppFunctionalPage("/components/foldingpanel/foldingPanel_a4j.jsf");
        ElementInspector foldingPanelToggle = foldingPanel("formID:foldingPanelID").toggle();
        foldingPanelToggle.clickAndWait(OpenFacesAjaxLoadingMode.getInstance());

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

        String oldCaptionValue = foldingPanelCaption.text();
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        //server-side
        final String serverValidationFormName = "serverValidation:";
        isPassedStandardValidators(serverValidationFormName);
        element(serverValidationFormName + "fillInvalid").click();
        ElementInspector serverValidationSubmit = element(serverValidationFormName + "submitBt");
        serverValidationSubmit.clickAndWait();
        waitForPageToLoad();
        isFailedStandardValidators(serverValidationFormName);
        element(serverValidationFormName + "fillValid").click();
        serverValidationSubmit.clickAndWait();
        isPassedStandardValidators(serverValidationFormName);
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        ElementInspector serverValidationSubmit = element(serverValidationFormName + "submitBt");
        serverValidationSubmit.clickAndWait();
        waitForPageToLoad();
        isFailedStandardValidators(serverValidationFormName);
        element(serverValidationFormName + "fillValid").click();
        serverValidationSubmit.clickAndWait();
        isPassedStandardValidators(serverValidationFormName);
        //client-side
        final String clientValidationFormName = "clientValidation:";
        isPassedStandardValidators(clientValidationFormName);
        element(clientValidationFormName + "fillInvalid").click();
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        key2.assertText("c. ");
        value0.assertAttribute("value", "item A");
        value1.assertAttribute("value", "item B");
        value2.assertAttribute("value", "item C");

        killer1.clickAndWait();

        key0.assertText("a. ");
        key1.assertText("c. ");
        key2.assertElementExists(false);
        value0.assertAttribute("value", "item A");
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        tls.addButton().click();
        checkLabelsCorrectness(tls, new String[]{"item_Label_1", "item_Label_4", "item_Label_6", "item_Label_7"},
                new String[]{"item_Label_3", "item_Label_5", "item_Label_2"}, "Available items", "Selected items");

        ElementInspector submit = element("formID:submit");
        submit.clickAndWait();
        tlsOutput.assertText("item_Value_3 item_Value_5 item_Value_2 ");

        //add one item by doubleclick
        tls.leftList().doubleClick();
        checkLabelsCorrectness(tls, new String[]{"item_Label_1", "item_Label_4", "item_Label_6"},
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.clickAndWait()

        //add one item by doubleclick
        tls.leftList().doubleClick();
        checkLabelsCorrectness(tls, new String[]{"item_Label_1", "item_Label_4", "item_Label_6"},
                new String[]{"item_Label_3", "item_Label_5", "item_Label_2", "item_Label_7"}, "Available items", "Selected items");
        submit.clickAndWait();
        tlsOutput.assertText("item_Value_3 item_Value_5 item_Value_2 item_Value_7 ");

        //remove one item
        tls.rightList().selectedItem(1);
        tls.removeButton().click();
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.