Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertText()


     @Test
    public void testActionPhase() {
        testAppFunctionalPage("/components/ajax/ajax.jsf");
        element("form1:resetBtn").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        ElementInspector counter = element("form1:counter");
        counter.assertText("0");

        // check operation with <h:commandButton> -- a special implementation case
        element("form1:btn1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("1"); // check direct embedding
        element("form1:btn2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
View Full Code Here


        ElementInspector counter = element("form1:counter");
        counter.assertText("0");

        // check operation with <h:commandButton> -- a special implementation case
        element("form1:btn1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("1"); // check direct embedding
        element("form1:btn2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("2"); // check attaching with "for" attribute
        element("form1:btn3").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("3"); // standalone invokation
View Full Code Here

        // check operation with <h:commandButton> -- a special implementation case
        element("form1:btn1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("1"); // check direct embedding
        element("form1:btn2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("2"); // check attaching with "for" attribute
        element("form1:btn3").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("3"); // standalone invokation

        // check operation with <h:commandButton> -- a special implementation case
        element("form1:link1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
View Full Code Here

        element("form1:btn1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("1"); // check direct embedding
        element("form1:btn2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("2"); // check attaching with "for" attribute
        element("form1:btn3").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("3"); // standalone invokation

        // check operation with <h:commandButton> -- a special implementation case
        element("form1:link1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("4"); // check direct embedding
        element("form1:link2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
View Full Code Here

        element("form1:btn3").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("3"); // standalone invokation

        // check operation with <h:commandButton> -- a special implementation case
        element("form1:link1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("4"); // check direct embedding
        element("form1:link2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("5"); // check attaching with "for" attribute
        element("form1:link3").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("6"); // standalone invokation
View Full Code Here

        // check operation with <h:commandButton> -- a special implementation case
        element("form1:link1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("4"); // check direct embedding
        element("form1:link2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("5"); // check attaching with "for" attribute
        element("form1:link3").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("6"); // standalone invokation

        // check operation with <h:inputText> -- a non-default event, delay
View Full Code Here

        element("form1:link1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("4"); // check direct embedding
        element("form1:link2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("5"); // check attaching with "for" attribute
        element("form1:link3").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("6"); // standalone invokation

        // check operation with <h:inputText> -- a non-default event, delay

        InputTextInspector inputText = inputText("form1:input1");
        inputText.typeKeys("1");
View Full Code Here

        InputTextInspector inputText = inputText("form1:input1");
        inputText.typeKeys("1");
        sleep(100);
        inputText.typeKeys("2");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        counter.assertText("7"); // check direct embedding
        inputText = inputText("form1:input2");
        inputText.typeKeys("1");
        sleep(100);
        inputText.typeKeys("2");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

        inputText = inputText("form1:input2");
        inputText.typeKeys("1");
        sleep(100);
        inputText.typeKeys("2");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        counter.assertText("8"); // check attaching with "for" attribute
        inputText = inputText("form1:input3");
        inputText.typeKeys("1");
        sleep(100);
        inputText.typeKeys("2");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
View Full Code Here

        inputText = inputText("form1:input3");
        inputText.typeKeys("1");
        sleep(100);
        inputText.typeKeys("2");
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        counter.assertText("9"); // standalone invokation

        // check operation with <h:graphicImage> -- a case for a typical JSF component without special implementation cases
        element("form1:image1").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
        counter.assertText("10"); // check direct embedding
        element("form1:image2").clickAndWait(OpenFacesAjaxLoadingMode.getInstance());
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.