Package org.openqa.selenium

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


        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

                "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

        // 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

                        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

                "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());
        assertEquals("unexpected day content", "29", days.get(0).getText());
        assertEquals("unexpected day content", "7", days.get(8).getText());
        assertEquals("unexpected day content", "24", days.get(25).getText());
View Full Code Here

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

                        By.className("v-datefield-calendarpanel-month")).get(1)
                        .getText());
        assertEquals(
                "unexpected selection",
                0,
                popup.findElements(
                        By.className("v-datefield-calendarpanel-day-selected"))
                        .size());
        assertEquals(
                "unexpected focus",
                0,
View Full Code Here

                        By.className("v-datefield-calendarpanel-day-selected"))
                        .size());
        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

                "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());
        assertEquals("unexpected day content", "30", days.get(0).getText());
        assertEquals("unexpected day content", "8", days.get(8).getText());
        assertEquals("unexpected day content", "25", days.get(25).getText());
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.