Package org.seleniuminspector.openfaces

Examples of org.seleniuminspector.openfaces.DropDownFieldInspector.popup()


     @Test
    public void testWithropDownField() {
        testAppFunctionalPage("/components/loadbundle/withDropDownField.jsf");

        DropDownFieldInspector dropDown = dropDownField("formID:plants");
        ElementInspector secondSuggestion = dropDown.popup().items().get(2);

        // check 'ar' locale
        dropDown.button().mouseDown();
        secondSuggestion.assertText(TODAY_AR);
View Full Code Here


        testAppFunctionalPage(pageUrl);

        // with mouse help
        DropDownFieldInspector first = dropDownField("formID:first");
        if (isDropDown) {
            first.popup().assertVisible(false);
            first.button().mouseDown();
            first.popup().assertVisible(true);
            first.button().mouseDown();
        }
View Full Code Here

        // with mouse help
        DropDownFieldInspector first = dropDownField("formID:first");
        if (isDropDown) {
            first.popup().assertVisible(false);
            first.button().mouseDown();
            first.popup().assertVisible(true);
            first.button().mouseDown();
        }

        // with keyboard help
        first.popup().assertVisible(false);
View Full Code Here

            first.popup().assertVisible(true);
            first.button().mouseDown();
        }

        // with keyboard help
        first.popup().assertVisible(false);
        first.field().keyDown(KeyEvent.VK_DOWN); // down key
        first.popup().assertVisible(true);
        first.popup().assertItemTexts(new String[]{"Red", "Yellow", "Blue"});

        // check with 'Esc' key
View Full Code Here

        }

        // with keyboard help
        first.popup().assertVisible(false);
        first.field().keyDown(KeyEvent.VK_DOWN); // down key
        first.popup().assertVisible(true);
        first.popup().assertItemTexts(new String[]{"Red", "Yellow", "Blue"});

        // check with 'Esc' key
        first.field().keyPress(KeyEvent.VK_ESCAPE);
        first.popup().assertVisible(false);
View Full Code Here

        // with keyboard help
        first.popup().assertVisible(false);
        first.field().keyDown(KeyEvent.VK_DOWN); // down key
        first.popup().assertVisible(true);
        first.popup().assertItemTexts(new String[]{"Red", "Yellow", "Blue"});

        // check with 'Esc' key
        first.field().keyPress(KeyEvent.VK_ESCAPE);
        first.popup().assertVisible(false);
View Full Code Here

        first.popup().assertVisible(true);
        first.popup().assertItemTexts(new String[]{"Red", "Yellow", "Blue"});

        // check with 'Esc' key
        first.field().keyPress(KeyEvent.VK_ESCAPE);
        first.popup().assertVisible(false);

        // check with 'Enter' key
        first.field().keyDown(KeyEvent.VK_DOWN);
        first.popup().assertVisible(true);
        first.field().keyDown(KeyEvent.VK_DOWN);
View Full Code Here

        first.field().keyPress(KeyEvent.VK_ESCAPE);
        first.popup().assertVisible(false);

        // check with 'Enter' key
        first.field().keyDown(KeyEvent.VK_DOWN);
        first.popup().assertVisible(true);
        first.field().keyDown(KeyEvent.VK_DOWN);
        first.field().keyPress(13);
        first.popup().assertVisible(false);
    }
View Full Code Here

        // check with 'Enter' key
        first.field().keyDown(KeyEvent.VK_DOWN);
        first.popup().assertVisible(true);
        first.field().keyDown(KeyEvent.VK_DOWN);
        first.field().keyPress(13);
        first.popup().assertVisible(false);
    }

    protected void checkListCorrectness(String pageUrl, boolean isDropDown) {
        testAppFunctionalPage(pageUrl);
View Full Code Here

        if (isDropDown)
            first.button().mouseDown();
        else
            first.field().keyDown(KeyEvent.VK_DOWN); // down key

        first.popup().assertItemTexts(referenceCollection);

        // check items defined by binding
        DropDownFieldInspector second = dropDownField("formID:second");
        if (isDropDown)
            second.button().mouseDown();
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.