Examples of sendKeys()


Examples of org.xwiki.test.ui.po.ViewPage.sendKeys()

    public void testKeyboardShortcuts()
    {
        ViewPage vp = util.gotoPage("Sandbox", "WebHome");

        // Test default edit mode (WYSIWYG for Sandbox.WebHome) key
        vp.sendKeys("e");

        // Test Cancel key
        vp.sendKeys(Keys.chord(Keys.ALT, "c"));
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInViewMode());
View Full Code Here

Examples of org.xwiki.test.ui.po.editor.UserPicker.sendKeys()

    public void testSuggestions()
    {
        UserPicker userPicker = new UserClassFieldEditPane(editor.addField("User").getName()).getUserPicker();

        // The suggestions should be case-insensitive. Match the last name.
        List<UserElement> suggestions = userPicker.sendKeys("mOr").waitForSuggestions().getSuggestions();
        Assert.assertEquals(2, suggestions.size());
        assertUserElement(suggestions.get(0), "Eduard Moraru", "Enygma2002");
        assertUserElement(suggestions.get(1), "Thomas Mortagne");

        // Match the first name.
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.