Package org.seleniuminspector.openfaces

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


    public void testWithSuggestionField() {
        testAppFunctionalPage("/components/loadbundle/withSuggestionField.jsf");

        String suggestionFieldId = "formID:plants";
        SuggestionFieldInspector suggestionField = suggestionField(suggestionFieldId);
        ElementInspector secondSuggestion = suggestionField.popup().items().get(2);

        // check 'ar' locale
        suggestionField.keyDown(KeyEvent.VK_DOWN);
        secondSuggestion.assertText(WEEK_AR);
View Full Code Here


        testAppFunctionalPage("/components/foreach/forEach.jsf");

        ForEachInspector forEach = forEach("formID:fe10");
        SuggestionFieldInspector suggestionField = suggestionField(forEach.item(0, "sf1").asSeleniumLocator());

        ElementInspector dropDownItem0 = suggestionField.popup().items().get(0);
        ElementInspector dropDownItem1 = suggestionField.popup().items().get(1);
        ElementInspector dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
View Full Code Here

        ForEachInspector forEach = forEach("formID:fe10");
        SuggestionFieldInspector suggestionField = suggestionField(forEach.item(0, "sf1").asSeleniumLocator());

        ElementInspector dropDownItem0 = suggestionField.popup().items().get(0);
        ElementInspector dropDownItem1 = suggestionField.popup().items().get(1);
        ElementInspector dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);
View Full Code Here

        ForEachInspector forEach = forEach("formID:fe10");
        SuggestionFieldInspector suggestionField = suggestionField(forEach.item(0, "sf1").asSeleniumLocator());

        ElementInspector dropDownItem0 = suggestionField.popup().items().get(0);
        ElementInspector dropDownItem1 = suggestionField.popup().items().get(1);
        ElementInspector dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);
        suggestionField.keyPress('a');
View Full Code Here

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);

        suggestionField = suggestionField(forEach.item(1, "sf1").asSeleniumLocator());
        dropDownItem0 = suggestionField.popup().items().get(0);
        dropDownItem1 = suggestionField.popup().items().get(1);
        dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
View Full Code Here

        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);

        suggestionField = suggestionField(forEach.item(1, "sf1").asSeleniumLocator());
        dropDownItem0 = suggestionField.popup().items().get(0);
        dropDownItem1 = suggestionField.popup().items().get(1);
        dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);
View Full Code Here

        dropDownItem2.assertElementExists(false);

        suggestionField = suggestionField(forEach.item(1, "sf1").asSeleniumLocator());
        dropDownItem0 = suggestionField.popup().items().get(0);
        dropDownItem1 = suggestionField.popup().items().get(1);
        dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);
        sleep(3000);
View Full Code Here

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);

        suggestionField = suggestionField(forEach.item(2, "sf1").asSeleniumLocator());
        dropDownItem0 = suggestionField.popup().items().get(0);
        dropDownItem1 = suggestionField.popup().items().get(1);
        dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
View Full Code Here

        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);

        suggestionField = suggestionField(forEach.item(2, "sf1").asSeleniumLocator());
        dropDownItem0 = suggestionField.popup().items().get(0);
        dropDownItem1 = suggestionField.popup().items().get(1);
        dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);
View Full Code Here

        dropDownItem2.assertElementExists(false);

        suggestionField = suggestionField(forEach.item(2, "sf1").asSeleniumLocator());
        dropDownItem0 = suggestionField.popup().items().get(0);
        dropDownItem1 = suggestionField.popup().items().get(1);
        dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);
        suggestionField.keyPress('a');
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.