Package com.vaadin.testbench.elements

Examples of com.vaadin.testbench.elements.MenuBarElement.sendKeys()


    public void testEnableParentLayout() {
        openTestURL();

        MenuBarElement menu = $(MenuBarElement.class).get(0);
        menu.focus();
        menu.sendKeys(Keys.ARROW_RIGHT);
        menu.sendKeys(Keys.ENTER);

        List<WebElement> captions = driver.findElements(By
                .className("v-menubar-menuitem-caption"));
        boolean found = false;
View Full Code Here


        openTestURL();

        MenuBarElement menu = $(MenuBarElement.class).get(0);
        menu.focus();
        menu.sendKeys(Keys.ARROW_RIGHT);
        menu.sendKeys(Keys.ENTER);

        List<WebElement> captions = driver.findElements(By
                .className("v-menubar-menuitem-caption"));
        boolean found = false;
View Full Code Here

                found = true;
            }
        }
        Assert.assertTrue("Sub menu is not opened on ENTER key", found);

        menu.sendKeys(Keys.SPACE);

        Assert.assertTrue("No result of action triggered by SPACE key",
                isElementPresent(By.className("action-result")));
    }
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.