Package com.vaadin.testbench.elements

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


    public void testWithFocusOnInput() throws Exception {

        TextFieldElement textField = getTextField();

        // Try to delete characters in a text field.
        textField.sendKeys("textt");
        textField.sendKeys(BACK_SPACE);
        assertEquals("text", textField.getValue());
        checkButtonsCount();
    }
View Full Code Here


        TextFieldElement textField = getTextField();

        // Try to delete characters in a text field.
        textField.sendKeys("textt");
        textField.sendKeys(BACK_SPACE);
        assertEquals("text", textField.getValue());
        checkButtonsCount();
    }

    /**
 
View Full Code Here

    @Test
    public void testWithFocusOnBottom() throws Exception {
        TextFieldElement textField = getTextField();

        // tab in last field set focus on bottom component
        textField.sendKeys(TAB);

        // Try to send back actions to the browser.
        new Actions(getDriver()).sendKeys(BACK_SPACE).perform();

        checkButtonsCount();
View Full Code Here

        waitForElementVisible(By.className("v-textfield"));

        TextFieldElement textfield = $(TextFieldElement.class).first();
        textfield.focus();
        textfield.sendKeys("test");

        $(ButtonElement.class).first().click();

        new Actions(getDriver()).contextClick(textfield).perform();
View Full Code Here

        prefix.clear();
        prefix.sendKeys("Prefix:");

        postfix.clear();
        postfix.sendKeys("- press ESC to close");

        type.selectByText(NotificationRole.ALERT.toString());

        show.click();
        waitForElementPresent(By.className("v-Notification"));
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.