Package org.openqa.selenium

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


        // verify contents
        WebElement popup = findElement(By.className("v-datefield-popup"));
        assertEquals(
                "unexpected month",
                "February 2010",
                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", "SUN", weekdays.get(0)
                .getText());
        assertEquals(
                "unexpected weeknumber count",
                0,
                popup.findElements(
                        By.className("v-datefield-calendarpanel-weeknumber"))
                        .size());
        assertEquals(
                "unexpected selection",
                "16",
View Full Code Here

                "unexpected focus",
                "16",
                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", "31", 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

        // verify contents
        WebElement popup = findElement(By.className("v-datefield-popup"));
        assertEquals(
                "unexpected month",
                "helmikuu 2010",
                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 weekday count", 7, weekdays.size());
        assertEquals("unexpected first day of week", "MA", weekdays.get(0)
                .getText());
        List<WebElement> weeknumbers = popup.findElements(By
                .className("v-datefield-calendarpanel-weeknumber"));
        assertEquals("unexpected weeknumber count", 6, weeknumbers.size());
        assertEquals("unexpected weeknumber content", "5", weeknumbers.get(0)
                .getText());
        assertEquals("unexpected weeknumber content", "10", weeknumbers.get(5)
View Full Code Here

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

        List<WebElement> rows = $(TableElement.class).first()
                .findElement(By.className("v-table-body"))
                .findElements(By.tagName("tr"));
        WebElement firstrow = rows.get(0);
        List<WebElement> cells = firstrow.findElements(By
                .className("v-table-cell-content"));

        int cellwidth = cells.get(0).getSize().getWidth();
        return cellwidth;
    }
View Full Code Here

            return resultEl.findElement(By.name("description"));
        }
     
        public WebElement getSaveBtn() {
            WebElement resultEl = getWidgetDiv();
            return resultEl.findElements(By.tagName("button")).get(0);
        }
     
        public WebElement getCancelBtn() {
            WebElement resultEl = getWidgetDiv();
            return resultEl.findElements(By.tagName("button")).get(1);
View Full Code Here

            return resultEl.findElements(By.tagName("button")).get(0);
        }
     
        public WebElement getCancelBtn() {
            WebElement resultEl = getWidgetDiv();
            return resultEl.findElements(By.tagName("button")).get(1);
        }
       
        public void setName(String name) {
            WebElement nameInput = getNameInput();
            nameInput.clear();
View Full Code Here

            return resultEl.findElement(By.name("_file"));
        }
     
        public List<WebElement> getVisibilityRadioBtns() {
            WebElement resultEl = getWebElement();
            return resultEl.findElements(By.name("_visibility"));
        }
             
        public WebElement getShareFilePropagateCheckbox() {
            WebElement resultEl = getWebElement();
            return resultEl.findElement(By.name("_shareFilePropagate"));
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.