Examples of openPopup()


Examples of com.vaadin.testbench.elements.ComboBoxElement.openPopup()

        openTestURL();

        ComboBoxElement cb = $(ComboBoxElement.class).first();
        WebElement textbox = cb.findElement(By.vaadin("#textbox"));
        textbox.sendKeys("I");
        cb.openPopup();
        cb.openPopup(); // openPopup() actually toggles
        // The entered value should remain
        assertEquals("I", textbox.getAttribute("value"));
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.openPopup()

        ComboBoxElement cb = $(ComboBoxElement.class).first();
        WebElement textbox = cb.findElement(By.vaadin("#textbox"));
        textbox.sendKeys("I");
        cb.openPopup();
        cb.openPopup(); // openPopup() actually toggles
        // The entered value should remain
        assertEquals("I", textbox.getAttribute("value"));
    }

    @Test
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.openPopup()

        ComboBoxElement cb = $(ComboBoxElement.class).first();
        cb.selectByText("Item 3");
        WebElement textbox = cb.findElement(By.vaadin("#textbox"));
        textbox.clear();
        textbox.sendKeys("I");
        cb.openPopup();
        // Entered value should remain in the text field even though the popup
        // is opened
        assertEquals("I", textbox.getAttribute("value"));

    }
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.openPopup()

        ComboBoxElement comboBox = getComboBox("filtering-off");

        assertThat(getComboBoxValue(comboBox), is(""));

        //selectByText doesn't work when filtering is off.
        comboBox.openPopup();
        List<WebElement> filteredItems = findElements(By.className("gwt-MenuItem"));
        filteredItems.get(1).click();

        sendKeysToComboBox(comboBox, "mnop");
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.openPopup()

    }

    private void openPopup() {
        ComboBoxElement combobox = $(ComboBoxElement.class).first();
        combobox.click();
        combobox.openPopup();
        combobox.focus();

        Actions actions = new Actions(getDriver());
        actions.moveToElement(
                getDriver().findElement(By.className("gwt-MenuItem"))).build()
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.openPopup()

    @Test
    public void testPopupViewContainsAddedItem() {
        openTestURL();
        ComboBoxElement cBox = $(ComboBoxElement.class).first();
        ButtonElement focusTarget = $(ButtonElement.class).first();
        cBox.openPopup();
        int i = 0;
        while (i < 3) {
            assertTrue("No item added on focus", cBox.getPopupSuggestions()
                    .contains("Focus" + i++));
            focusTarget.focus();
View Full Code Here

Examples of com.vaadin.testbench.elements.ComboBoxElement.openPopup()

        return driver.findElement(By.className("v-filterselect-input"));
    }

    private void openPopup() {
        ComboBoxElement cb = $(ComboBoxElement.class).first();
        cb.openPopup();
    }

    @Test
    public void scrollDownArrowKeyTest() throws InterruptedException {
        WebElement dropDownComboBox = getDropDown();
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.