Package org.openqa.selenium

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


        sleep(100);

        rows = treeTable.findElement(By.className("v-table-body"))
                .findElements(By.tagName("tr"));
        WebElement button = rows.get(2).findElement(By.className("v-button"));
        button.click();

        List<WebElement> notifications = findElements(By
                .className("v-Notification-system"));
        assertTrue(notifications.isEmpty());
    }
View Full Code Here


        panelScrollable.scroll(verticalLayoutSize.height);

        WebElement button = verticalLayout
                .findElement(By.className("v-button"));

        button.click();

        // Loose the focus from the button.
        new Actions(getDriver())
                .moveToElement(panelScrollable, panelScrollableSize.width / 2,
                        panelScrollableSize.height / 2).click().build()
View Full Code Here

                $(LabelElement.class).get(idx).getText());

        WebElement table = vaadinElementById("testtable");
        WebElement row = table.findElement(By
                .xpath("//div[text()='Click for NPE']"));
        row.click();

        Assert.assertEquals("Internal error",
                vaadinElement("Root/VNotification[0]/HTML[0]/domChild[0]")
                        .getText());
    }
View Full Code Here

    @Test
    public void testRemoveAndAdd() {
        openTestURL();

        WebElement button = driver.findElement(By.className("v-button"));
        button.click();

        List<WebElement> panels = driver.findElements(By.className("v-panel"));

        Assert.assertEquals("Found two widgets inside one tab after "
                + "subsequent tab removal and addition", 1, panels.size());
View Full Code Here

    @Test
    public void testEnableParentLayout() {
        openTestURL();

        WebElement button = driver.findElement(By.className("v-button"));
        button.click();

        WebElement textField = driver.findElement(By
                .className("v-datefield-textfield"));
        textField.click();
View Full Code Here

        WebElement button = driver.findElement(By.className("v-button"));
        button.click();

        WebElement textField = driver.findElement(By
                .className("v-datefield-textfield"));
        textField.click();

        Assert.assertFalse(
                "Date input text field shoud be disabled for disabled DateField",
                textField.isEnabled());
View Full Code Here

                "Date input text field shoud be disabled for disabled DateField",
                textField.isEnabled());

        WebElement dataFieldButton = driver.findElement(By
                .className("v-datefield-button"));
        dataFieldButton.click();

        Assert.assertFalse(
                "Disabled date popup is opened after click to its button",
                isElementPresent(By.className("v-datefield-popup")));
View Full Code Here

        textField.sendKeys(text);

        Assert.assertEquals("Unexpected text in date text field", text,
                textField.getAttribute("value"));

        dataFieldButton.click();
        Assert.assertFalse("Unexpected disabled element found",
                isElementPresent(By.className("v-disabled")));

        Assert.assertTrue("Date popup is not opened after click to its button",
                isElementPresent(By.className("v-datefield-popup")));
View Full Code Here

    @Test
    public void testRemoveTab() {
        openTestURL();

        WebElement button = driver.findElement(By.className("v-button"));
        button.click();

        checkFirstItemHeight("On second tab");

        button.click();
View Full Code Here

        WebElement button = driver.findElement(By.className("v-button"));
        button.click();

        checkFirstItemHeight("On second tab");

        button.click();

        checkFirstItemHeight("On third tab");
    }

    private void checkFirstItemHeight(String text) {
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.