Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertVisible()


        ElementInspector buttonPopup = element("confirmationForm:buttonPopup");
        buttonPopup.assertVisible(false);
        ConfirmationInspector buttonConfirmation = confirmation("confirmationForm:buttonConfirmation");
        buttonConfirmation.assertVisible(true);
        buttonConfirmation.okButton().click();
        buttonPopup.assertVisible(true);
        buttonConfirmation.assertVisible(false);

        element("confirmationForm:linkInvoker").click();
        ElementInspector linkPopup = element("confirmationForm:linkPopup");
        linkPopup.assertVisible(false);
View Full Code Here


        buttonPopup.assertVisible(true);
        buttonConfirmation.assertVisible(false);

        element("confirmationForm:linkInvoker").click();
        ElementInspector linkPopup = element("confirmationForm:linkPopup");
        linkPopup.assertVisible(false);
        ConfirmationInspector linkConfirmation = confirmation("confirmationForm:linkConfirmation");
        linkConfirmation.assertVisible(true);
        linkConfirmation.okButton().click();
        linkPopup.assertVisible(true);
        linkConfirmation.assertVisible(false);
View Full Code Here

        ElementInspector linkPopup = element("confirmationForm:linkPopup");
        linkPopup.assertVisible(false);
        ConfirmationInspector linkConfirmation = confirmation("confirmationForm:linkConfirmation");
        linkConfirmation.assertVisible(true);
        linkConfirmation.okButton().click();
        linkPopup.assertVisible(true);
        linkConfirmation.assertVisible(false);

        getDriver().findElement(By.id("textInvoker")).click();
        ElementInspector textPopup = element("confirmationForm:textPopup");
        textPopup.assertVisible(false);
View Full Code Here

        linkPopup.assertVisible(true);
        linkConfirmation.assertVisible(false);

        getDriver().findElement(By.id("textInvoker")).click();
        ElementInspector textPopup = element("confirmationForm:textPopup");
        textPopup.assertVisible(false);
        ConfirmationInspector textConfirmation = confirmation("confirmationForm:textConfirmation");
        textConfirmation.assertVisible(true);
        textConfirmation.okButton().click();
        textPopup.assertVisible(true);
        textConfirmation.assertVisible(false);
View Full Code Here

        ElementInspector textPopup = element("confirmationForm:textPopup");
        textPopup.assertVisible(false);
        ConfirmationInspector textConfirmation = confirmation("confirmationForm:textConfirmation");
        textConfirmation.assertVisible(true);
        textConfirmation.okButton().click();
        textPopup.assertVisible(true);
        textConfirmation.assertVisible(false);

        element("confirmationForm:imageInvoker").evalExpression("ondblclick.call(this, this)");
        ElementInspector imagePopup = element("confirmationForm:imagePopup");
        imagePopup.assertVisible(false);
View Full Code Here

        textPopup.assertVisible(true);
        textConfirmation.assertVisible(false);

        element("confirmationForm:imageInvoker").evalExpression("ondblclick.call(this, this)");
        ElementInspector imagePopup = element("confirmationForm:imagePopup");
        imagePopup.assertVisible(false);
        ConfirmationInspector imageConfirmation = confirmation("confirmationForm:imageConfirmation");
//        imageConfirmation.assertVisible();
        imageConfirmation.assertVisible(true);
        imageConfirmation.okButton().click();
        imagePopup.assertVisible(true);
View Full Code Here

        imagePopup.assertVisible(false);
        ConfirmationInspector imageConfirmation = confirmation("confirmationForm:imageConfirmation");
//        imageConfirmation.assertVisible();
        imageConfirmation.assertVisible(true);
        imageConfirmation.okButton().click();
        imagePopup.assertVisible(true);
        imageConfirmation.assertVisible(false);

        getDriver().findElement(By.id("message_input")).clear();
        getDriver().findElement(By.id("message_input")).sendKeys("Are you sure?");
        ElementInspector changedInvoker = element("changedInvoker");
View Full Code Here

        ElementInspector message3 = forEach.item(3, "hm1");

        message0.assertVisible(false);
        message1.assertVisible(false);
        message2.assertVisible(false);
        message3.assertVisible(false);

        forEach.item(0, "qit1", InputTextInspector.class).type("10");
        forEach.item(1, "qit1", InputTextInspector.class).type("10.1");
        forEach.item(2, "qit1", InputTextInspector.class).type("ten");
        getSelenium().submit("formID");
View Full Code Here

        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();

        message0.assertVisible(false);
        message1.assertVisible(true);
        message2.assertVisible(true);
        message3.assertVisible(false);
    }

     @Test
    public void testValidation() {
        testAppFunctionalPage("/components/foreach/forEach.jsf");
View Full Code Here

        ElementInspector message3 = forEach.item(3, "hm2");

        message0.assertVisible(false);
        message1.assertVisible(false);
        message2.assertVisible(false);
        message3.assertVisible(false);

        forEach.item(0, "qit2", InputTextInspector.class).type("1");
        forEach.item(1, "qit2", InputTextInspector.class).type("12345");
        forEach.item(2, "qit2", InputTextInspector.class).type("123456");
        getSelenium().submit("formID");
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.