Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.InputTextInspector.fireEvent()


        first.fireEvent("onblur");
        first.assertValue("");

        second.focus();
        second.assertValue("");
        second.fireEvent("onblur");
        second.assertValue("some prompt text");

        first.type("val1");
        first.assertValue("val1");
        first.fireEvent("onblur");
View Full Code Here


        first.fireEvent("onblur");
        first.assertValue("val1");

        second.type("val2");
        second.assertValue("val2");
        second.fireEvent("onblur");
        second.assertValue("val2");
    }

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

        firstInput.assertStyle("background: beige; border: 1px solid green; color: brown; font-weight: bold");
        firstInput.assertWidth(160, 2);
        firstInput.fireEvent("onblur");

        // second input
        secondInput.fireEvent("onfocus");
        secondInput.assertStyle("background: beige; border: 1px solid green; color: brown; font-weight: bold");
        secondInput.assertWidth(160, 2);
        secondInput.fireEvent("onblur");

        // rollover elements
View Full Code Here

        // second input
        secondInput.fireEvent("onfocus");
        secondInput.assertStyle("background: beige; border: 1px solid green; color: brown; font-weight: bold");
        secondInput.assertWidth(160, 2);
        secondInput.fireEvent("onblur");

        // rollover elements
        // first input
        firstInput.mouseOver();
        firstInput.mouseMove();
View Full Code Here

        inputText.assertWidth(230, 4);
        inputText.mouseOut();

//        inputText.type("");
        getDriver().findElement(By.xpath(inputText.getXPath())).clear();
        inputText.fireEvent("onblur");
        sleep(1000);
        inputText.assertValue("ajax4jsf prompt text");
        inputText.assertStyle("background: burlywood; color: #7e7e7e");
    }
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.