Package org.seleniuminspector

Examples of org.seleniuminspector.ElementInspector.assertVisible()


        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();

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

     @Test
    public void testAjax() {
        Selenium selenium = getSelenium();
View Full Code Here


        dropDownItem2.assertElementExists(false);
        suggestionField.keyPress('a');
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        dropDownItem0.assertVisible(true);
        dropDownItem1.assertVisible(true);
        dropDownItem2.assertVisible(true);
        dropDownItem0.click();
        sleep(200);
        selenium.submit("formID");
        waitForPageToLoad();
        dropDownItem0.assertElementExists(false);
View Full Code Here

        sleep(3000);
        suggestionField.keyPress('a');
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        dropDownItem0.assertVisible(true);
        dropDownItem1.assertVisible(true);
        dropDownItem2.assertVisible(true);
        dropDownItem2.click();
        sleep(200);
        selenium.submit("formID");
        waitForPageToLoad();
        dropDownItem0.assertElementExists(false);
View Full Code Here

        dropDownItem2.assertElementExists(false);
        suggestionField.keyPress('a');
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        dropDownItem0.assertVisible(true);
        dropDownItem1.assertVisible(true);
        dropDownItem2.assertVisible(true);
        dropDownItem1.click();
        sleep(200);
        selenium.submit("formID");
        waitForPageToLoad();
        dropDownItem0.assertElementExists(false);
View Full Code Here

        DataTableUtils.TestDataTableItem referenceFilteredRow = DataTableUtils.TWO_STRING_COLUMN_LIST.get(0);

        //check is right row appeared after filtering and other rows is non-visible
        ElementInspector firstBody = element("formID:filterableDataTable_searchField:0:filterableDataTable_searchField_firstBody");
        firstBody.assertVisible(true);
        ElementInspector secondBody = element("formID:filterableDataTable_searchField:0:filterableDataTable_searchField_secondBody");
        secondBody.assertVisible(true);
        firstBody.assertText(referenceFilteredRow.getFirstColumn());
        secondBody.assertText(referenceFilteredRow.getSecondColumn());
View Full Code Here

        //check is right row appeared after filtering and other rows is non-visible
        ElementInspector firstBody = element("formID:filterableDataTable_searchField:0:filterableDataTable_searchField_firstBody");
        firstBody.assertVisible(true);
        ElementInspector secondBody = element("formID:filterableDataTable_searchField:0:filterableDataTable_searchField_secondBody");
        secondBody.assertVisible(true);
        firstBody.assertText(referenceFilteredRow.getFirstColumn());
        secondBody.assertText(referenceFilteredRow.getSecondColumn());

        for (int i = 1; i < 9; i++) {
            element("formID:filterableDataTable_searchField:" + i + ":filterableDataTable_searchField_firstBody")
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.