Package com.vaadin.testbench.elements

Examples of com.vaadin.testbench.elements.DateFieldElement.findElement()


    }

    private void openDatePicker() {
        DateFieldElement dateField = $(DateFieldElement.class).first();

        dateField.findElement(By.tagName("button"))
                .click();
    }

}
View Full Code Here


        assertEquals("unexpected amount of datefields", 3, dateFields.size());

        DateFieldElement dateField = dateFields.get(0);

        // open the popup
        dateField.findElement(By.tagName("button")).click();

        assertTrue("popup not found when there should be one",
                isElementPresent(By.className("v-datefield-popup")));

        // verify contents
View Full Code Here

        assertEquals("unexpected day content", "8", days.get(8).getText());
        assertEquals("unexpected day content", "25", days.get(25).getText());
        assertEquals("unexpected day content", "10", days.get(41).getText());

        // close the popup by clicking the button again
        dateField.findElement(By.tagName("button")).click();

        // TODO: remove this once #14405 has been fixed
        if (!getBrowsersExcludingIE().contains(getDesiredCapabilities())) {
            // click something else outside the popup to close it
            dateField.findElement(By.tagName("input")).click();
View Full Code Here

        dateField.findElement(By.tagName("button")).click();

        // TODO: remove this once #14405 has been fixed
        if (!getBrowsersExcludingIE().contains(getDesiredCapabilities())) {
            // click something else outside the popup to close it
            dateField.findElement(By.tagName("input")).click();
        }

        assertFalse("popup found when there should be none",
                isElementPresent(By.className("v-datefield-popup")));
    }
View Full Code Here

        // change the date
        button.click();
        sleep(100);

        // open the popup
        dateField.findElement(By.tagName("button")).click();

        assertTrue("popup not found when there should be one",
                isElementPresent(By.className("v-datefield-popup")));

        // verify contents
View Full Code Here

        assertEquals("unexpected day content", "8", days.get(8).getText());
        assertEquals("unexpected day content", "25", days.get(25).getText());
        assertEquals("unexpected day content", "13", days.get(41).getText());

        // close the popup by clicking the input field
        dateField.findElement(By.tagName("input")).click();

        assertFalse("popup found when there should be none",
                isElementPresent(By.className("v-datefield-popup")));
    }
View Full Code Here

        // change the date
        button.click();
        sleep(100);

        // open the popup
        dateField.findElement(By.tagName("button")).click();

        assertTrue("popup not found when there should be one",
                isElementPresent(By.className("v-datefield-popup")));

        // verify contents
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.