Examples of keyPress()


Examples of org.seleniuminspector.ElementInspector.keyPress()

        suggestionField.keyDown(KeyEvent.VK_DOWN);

        //press 'enter'
        suggestionField.keyPress(13);
        //press 'delete' button
        suggestionField.keyPress(KeyEvent.VK_DELETE);
        //press 'end' button
        suggestionField.keyPress(KeyEvent.VK_END);
        assertFalse(window().document().isAlertPresent());
    }
View Full Code Here

Examples of org.seleniuminspector.html.TextAreaInspector.keyPress()

        textArea.type("Some text");
        ElementInspector button = element("fm:bt");
        button.clickAndWait();
        textArea.assertValue("Some text");
        for (int i = 0; i < "Some text".length(); i++)
            textArea.keyPress(Keys.BACK_SPACE);
//        textArea.type("");
        dmf.assertElementExists(false);
        button.click();
        dmf.assertElementExists(true);
    }
View Full Code Here

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

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

        InputTextInspector keyChangeInput = inputText("formID:keyChange");

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

        // onkeydown
        keyChangeInput.keyDown(KeyEvent.VK_P);
View Full Code Here

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

        ElementInspector dropDownItem2 = suggestionField.popup().items().get(2);

        dropDownItem0.assertElementExists(false);
        dropDownItem1.assertElementExists(false);
        dropDownItem2.assertElementExists(false);
        suggestionField.keyPress('a');
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        dropDownItem0.assertVisible(true);
        dropDownItem1.assertVisible(true);
        dropDownItem2.assertVisible(true);
        dropDownItem0.click();
View Full Code Here

Examples of org.seleniuminspector.openfaces.TreeTableInspector.keyPress()

        click= new Actions(getDriver()).moveToElement(
                getDriver().findElement(By.id("formID:multipleNodeDatasSelectionTreeTableID:2:categoryID")))
                .click();
        click.build().perform();
//        element("formID:multipleNodeDatasSelectionTreeTableID:2:categoryID").click();
        multipleNodeDataTreeTable.keyPress(Keys.ARROW_RIGHT);
        OpenFacesAjaxLoadingMode.getInstance().waitForLoad();
        for (int i = 0; i < 3; i++) {
            createEvent(multipleNodeDataTreeTable, null, EventType.KEY, "keypress", KeyEvent.VK_DOWN, true);
        }
        element("formID:submitID").clickAndWait();
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.