Examples of findElements()


Examples of org.openqa.selenium.WebElement.findElements()

        actions.moveByOffset(50, 50);
        actions.perform();

        WebElement dragElement = driver.findElement(By
                .className("v-drag-element"));
        List<WebElement> children = dragElement.findElements(By.xpath(".//*"));
        boolean found = false;
        for (WebElement child : children) {
            if ("text".equals(child.getAttribute("value"))) {
                found = true;
            }
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

     * @param expected
     *            the expected alternate text, cannot be null
     */
    private void assertAltText(String buttonId, String expected) {
        WebElement button = vaadinElementById(buttonId);
        List<WebElement> imgList = button.findElements(By.xpath(".//img"));
        if (imgList.isEmpty()) {
            return;
        }
        WebElement img = imgList.get(0);
        String alt = img.getAttribute("alt");
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        assertFalse(scrollPosition.isDisplayed());
    }

    private List<WebElement> getCellsOfFirstColumn() {
        WebElement table = vaadinElementById(TABLE);
        List<WebElement> firstCellOfRows = table.findElements(By
                .cssSelector(".v-table-table tr > td"));
        return firstCellOfRows;
    }
}
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        comboBox.findElement(By.className("v-filterselect-button")).click();
        waitForPopup(comboBox);
        WebElement comboBoxPopup = vaadinElement("/VVerticalLayout[0]/Slot[2]/VVerticalLayout[0]/Slot["
                + indexToTest + "]/VFilterSelect[0]#popup");
        comboBoxPopup.findElements(By.tagName("td")).get(2).click();

        // Select an element from the second (to focus) combobox to remove
        // focus from the first combobox

        comboBoxFocus.findElement(By.className("v-filterselect-button"))
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        comboBoxFocus.findElement(By.className("v-filterselect-button"))
                .click();
        waitForPopup(comboBoxFocus);
        comboBoxPopup = vaadinElement("/VVerticalLayout[0]/Slot[2]/VVerticalLayout[0]/Slot["
                + indexToFocus + "]/VFilterSelect[0]#popup");
        comboBoxPopup.findElements(By.tagName("td")).get(2).click();

        // click the button of the first combobox. This would reveal the
        // unwanted behaviour.

        comboBox.findElement(By.className("v-filterselect-button")).click();
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        // verify contents
        WebElement popup = findElement(By.className("v-datefield-popup"));
        assertEquals(
                "unexpected month",
                "tammikuu 2011",
                popup.findElements(
                        By.className("v-datefield-calendarpanel-month")).get(1)
                        .getText());
        List<WebElement> headerElements = popup.findElement(
                By.className("v-datefield-calendarpanel-weekdays"))
                .findElements(By.tagName("td"));
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        assertEquals("unexpected first day of week", "MA", weekdays.get(0)
                .getText());
        assertEquals(
                "unexpected weeknumber count",
                0,
                popup.findElements(
                        By.className("v-datefield-calendarpanel-weeknumber"))
                        .size());
        assertEquals(
                "unexpected selection",
                "1",
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

                "unexpected focus",
                "1",
                popup.findElement(
                        By.className("v-datefield-calendarpanel-day-focused"))
                        .getText());
        List<WebElement> days = popup.findElements(By
                .className("v-datefield-calendarpanel-day"));
        assertEquals("unexpected day count", 42, days.size());
        assertEquals("unexpected day content", "27", days.get(0).getText());
        assertEquals("unexpected day content", "4", days.get(8).getText());
        assertEquals("unexpected day content", "21", days.get(25).getText());
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

        // verify contents
        assertEquals(
                "unexpected month",
                "joulukuu 2010",
                popup.findElements(
                        By.className("v-datefield-calendarpanel-month")).get(1)
                        .getText());
        assertEquals(
                "unexpected selection",
                "1",
View Full Code Here

Examples of org.openqa.selenium.WebElement.findElements()

                        By.className("v-datefield-calendarpanel-day-selected"))
                        .getText());
        assertEquals(
                "unexpected focus",
                0,
                popup.findElements(
                        By.className("v-datefield-calendarpanel-day-focused"))
                        .size());
        days = popup
                .findElements(By.className("v-datefield-calendarpanel-day"));
        assertEquals("unexpected day count", 42, days.size());
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.