Examples of keyDown()


Examples of org.seleniuminspector.ElementInspector.keyDown()

        Selenium selenium = getSelenium();
        testAppFunctionalPage("/components/datatable/selectionOnChange.jsf");

        ElementInspector multiple = dataTable("fn:multiple").column(0).bodyCell(0);
        multiple.click();
        multiple.keyDown(KeyEvent.VK_DOWN);
        assertTrue(selenium.isTextPresent("multiple selection onchange works"));
        assertTrue(selenium.isTextPresent("multiple change"));

        ElementInspector single = dataTable("fn:single").column(0).bodyCell(0);
        single.click();
View Full Code Here

Examples of org.seleniuminspector.ElementInspector.keyDown()

        assertTrue(selenium.isTextPresent("multiple selection onchange works"));
        assertTrue(selenium.isTextPresent("multiple change"));

        ElementInspector single = dataTable("fn:single").column(0).bodyCell(0);
        single.click();
        single.keyDown(KeyEvent.VK_DOWN);
        assertTrue(selenium.isTextPresent("single selection onchange works"));

        assertTrue(selenium.isTextPresent("single change"));
    }
View Full Code Here

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

                    field.fireEvent("onblur");
                }
            }

            if (!isDropDown) {
                dropDown.keyDown(KeyEvent.VK_DOWN);
                if (!isFocused) {
                    dropDown.fireEvent("onblur");
                }
            }
View Full Code Here

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

        keyChangeInput.keyPress(KeyEvent.VK_O);
        assertTrue(selenium.isTextPresent("onkeypress works"));
        assertTrue(selenium.isTextPresent("keypress"));

        // onkeydown
        keyChangeInput.keyDown(KeyEvent.VK_P);
        assertTrue(selenium.isTextPresent("onkeydown works"));
        assertTrue(selenium.isTextPresent("keydown"));

        // onkeyup
        keyChangeInput.keyUp(KeyEvent.VK_E);
View Full Code Here

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

        assertTrue(selenium.isTextPresent("click"));

        //onkeydown
        element("formID:onkeydownShowID").click();
        InputTextInspector keyDownInput = inputText("formID:keydown_input");
        keyDownInput.keyDown(KeyEvent.VK_M);
        assertTrue(selenium.isTextPresent("onkeydown works"));
        assertTrue(selenium.isTextPresent("keydown"));

        //ondblclick
        element("formID:ondblclickShowID").click();
View Full Code Here

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

        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);

        TabSetInspector localeChanger = tabSet("formID:localeChanger");

        // check 'es' locale
View Full Code Here

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

        TabSetInspector localeChanger = tabSet("formID:localeChanger");

        // check 'es' locale
        localeChanger.tabs().get(1).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withSuggestionField.jsf"); // issue a GET request for view to update locale in JSP
        suggestionField.keyDown(KeyEvent.VK_DOWN);
        secondSuggestion.assertText(WEEK_ES);

        // check 'ja' locale
        localeChanger.tabs().get(2).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withSuggestionField.jsf"); // issue a GET request for view to update locale in JSP
View Full Code Here

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

        secondSuggestion.assertText(WEEK_ES);

        // check 'ja' locale
        localeChanger.tabs().get(2).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withSuggestionField.jsf"); // issue a GET request for view to update locale in JSP
        suggestionField.keyDown(KeyEvent.VK_DOWN);
        secondSuggestion.assertText(WEEK_JA);

        // check 'ru' locale
        localeChanger.tabs().get(3).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withSuggestionField.jsf"); // issue a GET request for view to update locale in JSP
View Full Code Here

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

        secondSuggestion.assertText(WEEK_JA);

        // check 'ru' locale
        localeChanger.tabs().get(3).clickAndWait();
        testAppFunctionalPage("/components/loadbundle/withSuggestionField.jsf"); // issue a GET request for view to update locale in JSP
        suggestionField.keyDown(KeyEvent.VK_DOWN);
        secondSuggestion.assertText(WEEK_RU);

        // reset tab index for further running tests
        localeChanger.tabs().get(0).clickAndWait();
    }
View Full Code Here

Examples of utils.Keyboard.keyDown()

    int frames = 0, prevFrames = 0;
    int timePassed = 0;
    timer.start();
    while( true ) {
      kb.poll();
      if( kb.keyDown( KeyEvent.VK_Q ) ) {
        break;
      }
      if( kb.keyDown( KeyEvent.VK_A ) ) {
        Point2D tempPoint = new Point2D( rand.nextInt( window.getWidth() ), rand.nextInt( window.getHeight() ) );
        Size2D tempSize = new Size2D( rand.nextInt( 30 ) + 21, rand.nextInt( 30 ) + 21 );
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.