Examples of sendKeys()


Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

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

        // Test default edit mode (WYSIWYG for sandbox webhome) key
        vp.sendKeys("e");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWYSIWYGEditMode());

        // Test Cancel key
        vp.sendKeys(Keys.ALT, "c");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.sendKeys("e");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWYSIWYGEditMode());

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

        // Test Wiki edit key
        vp.sendKeys("k");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.sendKeys(Keys.ALT, "c");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInViewMode());

        // Test Wiki edit key
        vp.sendKeys("k");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWikiEditMode());

        // Test WYSIWYG edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWikiEditMode());

        // Test WYSIWYG edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("e");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWYSIWYGEditMode());

        // Test Inline edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInWYSIWYGEditMode());

        // Test Inline edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("f");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInInlineEditMode());

        // Test Rights edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInInlineEditMode());

        // Test Rights edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("r");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInRightsEditMode());

        // Test Object edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInRightsEditMode());

        // Test Object edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("o");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInObjectEditMode());

        // Test Class edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInObjectEditMode());

        // Test Class edit mode key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys("s");
        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInClassEditMode());

        // Test Delete key
        vp = this.util.gotoPage("Sandbox", "WebHome");
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.waitUntilPageIsLoaded();
        Assert.assertTrue(util.isInClassEditMode());

        // Test Delete key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys(Keys.DELETE);
        Assert.assertTrue(util.isInDeleteMode());

        // Test Rename key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys(Keys.F2);
View Full Code Here

Examples of org.xwiki.test.ui.framework.elements.ViewPage.sendKeys()

        vp.sendKeys(Keys.DELETE);
        Assert.assertTrue(util.isInDeleteMode());

        // Test Rename key
        vp = this.util.gotoPage("Sandbox", "WebHome");
        vp.sendKeys(Keys.F2);
        Assert.assertTrue(util.isInRenameMode());
    }
}
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.