Package org.openqa.selenium

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


    public void InsertedRowsAreNotDuplicated() {
        openTestURL();

        WebElement button = $(ButtonElement.class).first();

        button.click();

        $(TableElement.class).first().getCell(12, 0);
        Assert.fail("Duplicates are present.");
    }
View Full Code Here


    private void check(CheckBoxElement checkbox) {
        WebElement cb = checkbox.findElement(By.xpath("input"));
        if (BrowserUtil.isChrome(getDesiredCapabilities())) {
            testBenchElement(cb).click(0, 0);
        } else {
            cb.click();
        }
    }

    private void verifySpacingAbove(int spacing, GridLayoutElement gridLayout,
            CssLayoutElement component) {
View Full Code Here

        openTestURL();

        // Focus tree
        WebElement tree = getDriver().findElement(
                By.id(TreeScrollingOnRightClick.TREE_ID));
        tree.click();

        // Move selection down 50 items
        for (int down = 0; down < 50; down++) {
            tree.sendKeys(Keys.ARROW_DOWN);
        }
View Full Code Here

    }

    private void clickComboBoxTextArea() {
        WebElement cb = getDriver().findElement(
                By.className("v-filterselect-input"));
        cb.click();
    }

    private void typeString(String s) {
        Actions action = new Actions(getDriver());
        action.sendKeys(s);
View Full Code Here

    }

    private void goToNextPage() {
        WebElement nextPage = getDriver().findElement(
                By.className("v-filterselect-nextpage"));
        nextPage.click();
    }

    /*
     * Gets the list of filtered items from the combobox popup.
     */
 
View Full Code Here

    public void testTabsheetInDisabledParent() {
        openTestURL();

        WebElement button = getDriver().findElement(By.className("v-button"));
        // disable parent
        button.click();

        List<WebElement> tabHeaders = getDriver().findElements(
                By.className("v-tabsheet-tabitemcell"));
        tabHeaders.get(1).findElement(By.className("v-captiontext")).click();
View Full Code Here

                "It's possible to activate TabSheet tab when its parent is disabled",
                tabHeaders.get(1).getAttribute("class")
                        .contains("v-tabsheet-tabitemcell-selected"));

        // enable parent back
        button.click();

        // selected tab is still the same
        tabHeaders = getDriver().findElements(
                By.className("v-tabsheet-tabitemcell"));
        Assert.assertTrue(
View Full Code Here

        // Assert it is not selected before click.
        assertFalse(nonSelectedDay.getAttribute("class").contains("selected"));

        // Click on the non-selected day.
        nonSelectedDay.click();

        // Assert that clicking did not select the day.
        assertFalse(nonSelectedDay.getAttribute("class").contains("selected"));
    }
View Full Code Here

        Point location = element.getLocation();

        WebElement errorToggleButton = getDriver().findElement(
                By.id(HorizontalLayoutFullsizeContentWithErrorMsg.BUTTON_ID));

        errorToggleButton.click();

        Assert.assertEquals(location, element.getLocation());

        errorToggleButton.click();
View Full Code Here

        errorToggleButton.click();

        Assert.assertEquals(location, element.getLocation());

        errorToggleButton.click();

        Assert.assertEquals(location, element.getLocation());

    }
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.