Examples of findElements()


Examples of com.ponysdk.ui.server.basic.PFlexTable.findElements()

                flexTable1.getCellFormatter().removeStyleName(2, 0, "cell20bis");
            }
        });

        flexTable1 = findElementById("flexTable1");
        rows = flexTable1.findElements(By.tagName("tr"));
        cells = flexTable1.findElements(By.tagName("td"));
        final List<WebElement> cols = flexTable1.findElements(By.tagName("col"));

        Assert.assertEquals(3, rows.size());
        Assert.assertEquals(6, cells.size());
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PFlowPanel.findElements()

                register(flowPanel1);
            }
        });

        WebElement flowPanel1 = findElementById("flowPanel1");
        List<WebElement> divs = flowPanel1.findElements(By.tagName("div"));
        Assert.assertEquals(4, divs.size());

        final PFlowPanel pFlowPanel = get("flowPanel1");
        Assert.assertEquals(4, pFlowPanel.getWidgetCount());
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PGrid.findElements()

                register(grid1);
            }
        });

        final WebElement grid1 = findElementById("grid1");
        final List<WebElement> rows = grid1.findElements(By.tagName("tr"));
        Assert.assertEquals(3, rows.size());
        final List<WebElement> cells = grid1.findElements(By.tagName("td"));
        Assert.assertEquals(12, cells.size());
    }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PHTML.findElements()

            }
        });

        final WebElement html1 = findElementById("html1");
        Assert.assertEquals("Pure HTML", html1.getText());
        Assert.assertEquals(1, html1.findElements(By.tagName("b")).size());

        final PHTML pHtml = get("html1");
        Assert.assertEquals("Pure <b>HTML</b>", pHtml.getHTML());
        Assert.assertEquals(false, pHtml.isWordWrap());
    }
View Full Code Here

Examples of com.ponysdk.ui.server.basic.PListBox.findElements()

                listBox2.removeItem(2);
                listBox2.removeValue(new Long(6));
            }
        });

        options2 = listBox2.findElements(By.tagName("option"));

        Assert.assertEquals(3, options2.size());
        Assert.assertEquals("Item 1", options2.get(0).getText());
        Assert.assertEquals("Item 3", options2.get(1).getText());
        Assert.assertEquals("Item 5", options2.get(2).getText());
View Full Code Here

Examples of com.thoughtworks.inproctester.webdriver.InProcessHtmlUnitDriver.findElements()

        Cookie flashMessageCookie = htmlUnitDriver.manage().getCookieNamed("FLASH_MESSAGE");
        assertThat(flashMessageCookie, is(nullValue()));


         assertThat(htmlUnitDriver.findElements(By.className("message")), is(Matchers.<WebElement>empty()));
    }

}
View Full Code Here

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

    }

    private List<WebElement> getSlots(int index) {
        GridLayoutElement layout = $(GridLayoutElement.class).get(index);

        return layout.findElements(By.className("v-gridlayout-slot"));
    }

    private void hideMiddleRowAndColumn() {
        $(ButtonElement.class).first().click();
    }
View Full Code Here

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

        String text = notification.getAttribute("role");
        Assert.assertTrue("Expected attribute 'role' to equal 'alert', found "
                + text, text.equals("alert"));

        text = getHiddenText(notification.findElements(
                By.className("v-assistive-device-only")).get(0));
        Assert.assertTrue("Expected 'Prefix:', found " + text,
                text.equals("Prefix:"));

        text = getHiddenText(notification.findElements(
View Full Code Here

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

        text = getHiddenText(notification.findElements(
                By.className("v-assistive-device-only")).get(0));
        Assert.assertTrue("Expected 'Prefix:', found " + text,
                text.equals("Prefix:"));

        text = getHiddenText(notification.findElements(
                By.className("v-assistive-device-only")).get(1));
        Assert.assertTrue("Expected '- press ESC to close', found " + text,
                text.equals("- press ESC to close"));

        try {
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
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.