Package com.vaadin.testbench.elements

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


    public void closeComboboxPopupOnClickToMenuBar() {
        openTestURL();

        openPopup();
        MenuBarElement menuBar = selectMenuBar();
        menuBar.click();
        Assert.assertFalse("Combobox popup items are visible",
                isElementPresent(By.className("gwt-MenuItem")));

        openPopup();
        menuBar = selectMenuBar();
View Full Code Here


        WebElement menuBarItem = findElement(By
                .className("v-menubar-menuitem-caption"));
        Actions actions = new Actions(getDriver());
        actions.moveToElement(menuBarItem).build().perform();
        menuBar.click();
        Assert.assertFalse("Combobox popup items are visible",
                isElementPresent(By.className("gwt-MenuItem")));
    }

    private void openPopup() {
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.