Examples of findElements()


Examples of com.vaadin.testbench.elements.TreeTableElement.findElements()

        assertEquals("unexpected cell contents (first cached row expected)",
                "158", treeTable.getCell(159, 0).getText());

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[158]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[204]/col[0]")).size());

        // check the actual visibility
        compareScreen("bottom");
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.TreeTableElement.findElements()

        // wait for the scrollposition element to disappear
        waitUntilNot(ExpectedConditions.visibilityOfElementLocated(By
                .className("v-table-scrollposition")));

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[0]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[203]/col[0]")).size());

        // scroll 6000 to make sure to actually hit bottom
View Full Code Here

Examples of com.vaadin.testbench.elements.TreeTableElement.findElements()

        waitUntilNot(ExpectedConditions.visibilityOfElementLocated(By
                .className("v-table-scrollposition")));

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[0]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[203]/col[0]")).size());

        // scroll 6000 to make sure to actually hit bottom
        scrollable.scroll(6000);
View Full Code Here

Examples of com.vaadin.testbench.elements.TreeTableElement.findElements()

        assertEquals("unexpected cell contents (first visible row expected)",
                "188", treeTable.getCell(189, 0).getText());
        assertEquals("unexpected cell contents (first cached row expected)",
                "158", treeTable.getCell(159, 0).getText());

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[158]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[204]/col[0]")).size());

        // check the actual visibility
View Full Code Here

Examples of com.vaadin.testbench.elements.TreeTableElement.findElements()

        assertEquals("unexpected cell contents (first cached row expected)",
                "158", treeTable.getCell(159, 0).getText());

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[158]/col[0]")).size());
        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[204]/col[0]")).size());

        // check the actual visibility
        compareScreen("bottom");
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.TreeTableElement.findElements()

        // wait for the scrollposition element to disappear
        waitUntilNot(ExpectedConditions.visibilityOfElementLocated(By
                .className("v-table-scrollposition")));

        assertEquals("elements found where there should be none", 0, treeTable
                .findElements(By.vaadin("#row[0]/col[0]")).size());
        assertEquals("unexpected cell contents", "root2",
                treeTable.getCell(201, 0).getText());
        assertEquals("unexpected cell contents", "END",
                treeTable.getCell(203, 0).getText());
View Full Code Here

Examples of com.vaadin.testbench.elements.WindowElement.findElements()

        WebElement label = window.findElement(By.className("v-label"));
        assertEquals(label.getAttribute("id"),
                window.getAttribute("aria-describedby"));

        List<WebElement> wButtons = window.findElements(By
                .className("v-button"));
        assertEquals("button", wButtons.get(0).getAttribute("role"));
        assertEquals("button", wButtons.get(1).getAttribute("role"));

        // close dialog
View Full Code Here

Examples of com.vaadin.testbench.elements.WindowElement.findElements()

        waitForElementPresent(By.className("v-window"));

        // ensure correct attributes
        window = $(WindowElement.class).first();
        List<WebElement> labels = window.findElements(By.className("v-label"));
        assertEquals(labels.get(0).getAttribute("id") + " "
                + labels.get(1).getAttribute("id"),
                window.getAttribute("aria-describedby"));

        // close dialog
View Full Code Here

Examples of com.vaadin.testbench.elements.WindowElement.findElements()

        assertEquals(labels.get(0).getAttribute("id") + " "
                + labels.get(1).getAttribute("id"),
                window.getAttribute("aria-describedby"));

        // close dialog
        wButtons = window.findElements(By.className("v-button"));
        wButtons.get(0).click();

        // ensure dialog closed
        windows = $(WindowElement.class).all();
        assertTrue(windows.isEmpty());
View Full Code Here

Examples of daveayan.gherkinsalad.components.Element.findElements()

  }

  public void select_option_if_enabled(String option) {
    Element element = root_element();
    if (this.isEnabled()) {
      Elements options = element.findElements(By.tagName("option"));
      Element option_to_select = options.findFirstElementWithText(option);
      option_to_select.click();
    }
  }
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.