Package org.openqa.selenium

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


    }

    @Test
    public void testMenuWithoutIcons() {
        WebElement fileMenu = firstMenuBar.findElement(By.vaadin("#File"));
        fileMenu.click();
        WebElement exportMenu = fileMenu.findElement(By.vaadin("#Export.."));
        exportMenu.click();
        waitUntil(ExpectedConditions.visibilityOfElementLocated(By
                .xpath(".//*[text() = 'As PDF...']")));
    }
View Full Code Here


    @Test
    public void testMenuWithoutIcons() {
        WebElement fileMenu = firstMenuBar.findElement(By.vaadin("#File"));
        fileMenu.click();
        WebElement exportMenu = fileMenu.findElement(By.vaadin("#Export.."));
        exportMenu.click();
        waitUntil(ExpectedConditions.visibilityOfElementLocated(By
                .xpath(".//*[text() = 'As PDF...']")));
    }

    @Test
View Full Code Here

    public void testNestedMenuWithIcons() throws InterruptedException {
        String selection = itemNames[itemNames.length - 1];
        for (String itemName : nestedItemnames) {
            WebElement lastMenuItem = secondMenuBar.findElement(By.vaadin("#"
                    + selection));
            lastMenuItem.click();
            lastMenuItem.findElement(By.vaadin("#" + itemName)).click();
            waitUntil(ExpectedConditions.textToBePresentInElement(
                    label.getWrappedElement(), itemName));
        }
    }
View Full Code Here

    @Test
    public void addAndFocusTabs() throws IOException {
        openTestURL();
        WebElement addButton = getButton("Add tab");
        for (int i = 1; i <= 15; i++) {
            addButton.click();
            getButton("Tab " + i);
        }
        compareScreen("tabsAdded");
    }
View Full Code Here

        menuSub("Focus listener");

        getDriver().findElement(By.tagName("body")).click();

        WebElement select = getDriver().findElement(By.tagName("select"));
        select.click();

        String bodytext = getDriver().findElement(By.tagName("body")).getText();

        Assert.assertTrue(bodytext.contains("FocusEvent"));
View Full Code Here

        menuSub("Blur listener");

        getDriver().findElement(By.tagName("body")).click();

        WebElement select = getDriver().findElement(By.tagName("select"));
        select.click();

        getDriver().findElement(By.tagName("body")).click();

        String bodytext = getDriver().findElement(By.tagName("body")).getText();
View Full Code Here

    public void testMiddleLeft() {
        openTestURL();

        WebElement webElement = driver.findElement(By
                .className("show-middle-left"));
        webElement.click();

        WebElement notification = driver.findElement(By
                .className("v-Notification"));

        Assert.assertNotNull(notification);
View Full Code Here

    public void testMiddleRight() {
        openTestURL();

        WebElement webElement = driver.findElement(By
                .className("show-middle-right"));
        webElement.click();

        WebElement notification = driver.findElement(By
                .className("v-Notification"));

        Assert.assertNotNull(notification);
View Full Code Here

    private void performAction(WebElement element) {
        // right click
        new Actions(getDriver()).contextClick(element).perform();
        WebElement menuItem = getDriver().findElement(
                By.className("gwt-MenuItem"));
        menuItem.click();
    }

    private void checkEventSourceIsCalendar() {
        String calendarObject = getDriver().findElement(By.id("calendarlabel"))
                .getText();
View Full Code Here

    // phase 1
    if (wasaviFrame == null) {
      fail("runtimeOverrideSettings: cannot find wasaviFrame, phase 1");
    }

    wasaviFrame.click();
    Wasavi.sendNoWait(":set nu ai\n");
    sleep(1000);
    Wasavi.sendNoWait(":wq\n");
    sleep(1000);
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.