Examples of findElements()


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

                "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

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

        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

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

            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

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

            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

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

            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

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

            return resultEl.findElement(By.name("_shareFilePropagate"));
        }
             
        public WebElement getUploadBtn() {
            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

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

            return resultEl.findElements(By.tagName("button")).get(0);
        }
     
        public WebElement getCancelBtn() {
            WebElement resultEl = getWidgetDiv();
            return resultEl.findElements(By.tagName("button")).get(1);
        }
       
        public void setFile(String file) {
            WebElement fileInput = getFileInput();
            fileInput.sendKeys(file);
View Full Code Here

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

            return resultEl.findElement(By.name("tags"));
        }
     
        public WebElement getAddTagsBtn() {
            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

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

            return resultEl.findElements(By.tagName("button")).get(0);
        }
     
        public WebElement getCancelBtn() {
            WebElement resultEl = getWidgetDiv();
            return resultEl.findElements(By.tagName("button")).get(1);
        }
       
        public void setTags(String tags) {
            WebElement tagsInput = getTagsInput();
            tagsInput.clear();
View Full Code Here

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

                return null;
              } else if (condition
                  .equalsIgnoreCase("idWithChild")) {
                WebElement element = webDriver.findElement(By
                    .id(match));
                List<WebElement> children = element
                    .findElements(By.xpath("*"));
                if (!children.isEmpty()) {
                  return element;
                }
                return null;
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.