Examples of findElement()


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

                .findElements(By.tagName("tr"));
        assertEquals("unexpected cached row count", 46, rows.size());

        // TODO: replace these with just treeTable.scroll(int) when #13826 has
        // been fixed
        TestBenchElementCommands scrollable = testBenchElement(treeTable
                .findElement(By.className("v-scrollable")));

        // scroll far enough down to reach the second root item again
        scrollable.scroll(3969);
View Full Code Here

Examples of com.vaadin.testbench.elements.UploadElement.findElement()

        UploadElement immediateUpload = $(UploadElement.class).id(
                "immediateupload");

        WebElement normalUploadInput = normalUpload.findElement(By
                .cssSelector("input[type='file']"));
        WebElement immediateUploadInput = immediateUpload.findElement(By
                .cssSelector("input[type='file']"));

        WebElement normalUploadButton = normalUpload.findElement(By
                .tagName("div"));
        WebElement immediateUploadButton = immediateUpload.findElement(By
View Full Code Here

Examples of com.vaadin.testbench.elements.UploadElement.findElement()

        WebElement immediateUploadInput = immediateUpload.findElement(By
                .cssSelector("input[type='file']"));

        WebElement normalUploadButton = normalUpload.findElement(By
                .tagName("div"));
        WebElement immediateUploadButton = immediateUpload.findElement(By
                .tagName("div"));

        assertThat(normalUploadButton.getCssValue("display"),
                equalToIgnoringCase("block"));
        assertThat(immediateUploadButton.getCssValue("display"),
View Full Code Here

Examples of com.vaadin.testbench.elements.UploadElement.findElement()

        input.sendKeys(tempFileName);
    }

    private WebElement getSubmitButton() {
        UploadElement upload = $(UploadElement.class).first();
        WebElement submitButton = upload.findElement(By.className("v-button"));
        return submitButton;
    }

    private WebElement getInput() {
        return getDriver().findElement(By.className("gwt-FileUpload"));
View Full Code Here

Examples of com.vaadin.testbench.elements.UploadElement.findElement()

        $(ButtonElement.class).caption(caption).first().click();
    }

    private WebElement getUploadButton() {
        UploadElement upload = $(UploadElement.class).first();
        return upload.findElement(By.className("v-button"));
    }

    @Test
    public void buttonIsReadonly() {
        assertThat(getUploadButtonClass(), not(containsString("v-disabled")));
View Full Code Here

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

        WindowElement window = $(WindowElement.class).first();

        // ensure correct attributes
        assertEquals("alertdialog", window.getAttribute("role"));

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

        WebElement label = window.findElement(By.className("v-label"));
        assertEquals(label.getAttribute("id"),
View Full Code Here

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

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

        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"));
View Full Code Here

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

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

        // ensure the assistive spans have been added to the header
        window = $(WindowElement.class).first();
        header = window.findElement(By.className("v-window-header"));
        List<WebElement> assistiveElements = header.findElements(By
                .className("v-assistive-device-only"));
        assertEquals("Important",
                assistiveElements.get(0).getAttribute("innerHTML"));
        assertEquals(" - do ASAP",
View Full Code Here

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

    Element tab = find_tab_li(tab_name);
    if(tab_is_selected(tab)) {
      info("Tab '" + tab_name + "' is already selected.");
    } else {
      action("Selecting tab '" + tab_name + "', element '" + tab +"'");
      tab.findElement(By.tagName("a")).click();
    }
    takeScreenshot();
  }

  public void selected_tab_should_be(String expected_selected_tab) {
View Full Code Here

Examples of daveayan.gherkinsalad.components.core.Element.findElement()

    Element tab = find_tab_li(tab_name);
    if(tab_is_selected(tab)) {
      info("Tab '" + tab_name + "' is already selected.");
    } else {
      action("Selecting tab '" + tab_name + "', element '" + tab +"'");
      tab.findElement(By.tagName("a")).click();
    }
    takeScreenshot();
  }

  public void selected_tab_should_be(String expected_selected_tab) {
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.