Package org.openqa.selenium

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


        actions.moveToElement(thirdItem).perform();
        waitGui().until().element(autocompleteInput).attribute("value").equalTo("t,New York, San Francisco");
        assertTrue(suggestionList.isDisplayed());
        assertEquals(4, autocompleteItems.size());

        thirdItem.click();
        waitGui().until().element(suggestionList).is().not().visible();
        assertEquals("t,New York, San Francisco", autocompleteInput.getAttribute("value"));
    }

    @Test
View Full Code Here


        field.sendKeys(string + Keys.ENTER);

        // Non immediate, just the initial server side valuechange
        assertLastLog("1. fireValueChange");

        hitServerButton.click();

        // No value change, but value sent to server
        assertLastLog("2. fireValueChange");

        // listener on -> immediate on
View Full Code Here

        toggle.click();
        string = getRandomString();
        field.sendKeys(delSequence + string + Keys.ENTER);
        // No new value change should happen...
        assertLastLog("4. Value changed: " + lastvalue);
        hitServerButton.click();
        // ... but server should receive value with roundtrip
        assertLastLog("5. fireValueChange");

        // explicitly non immediate, but with listener
        explicitFalseButton.click();
View Full Code Here

        string = getRandomString();
        field.sendKeys(delSequence + string + Keys.ENTER);
        // non immediate, no change...
        assertLastLog("5. fireValueChange");
        // ... until server round trip
        hitServerButton.click();
        assertLastLog("7. Value changed: " + string);

    }

    private String getRandomString() {
View Full Code Here

        setDebug(true);
        openTestURL();

        WebElement checkbox = driver.findElement(By.className("v-checkbox"));
        WebElement checkboxInput = checkbox.findElement(By.tagName("input"));
        checkboxInput.click();

        Assert.assertFalse("There is a client side exception after unset "
                + "readonly mode for option group",
                isElementPresent(By.className("v-Notification-error")));
View Full Code Here

        addButton.click();
        addButton.click();
        addButton.click();
        addButton.click();

        closeButton.click();
        closeButton.click();
        closeButton.click();

        addButton.click();
        addButton.click();
View Full Code Here

        addButton.click();
        addButton.click();
        addButton.click();

        closeButton.click();
        closeButton.click();
        closeButton.click();

        addButton.click();
        addButton.click();
        addButton.click();
View Full Code Here

        addButton.click();
        addButton.click();

        closeButton.click();
        closeButton.click();
        closeButton.click();

        addButton.click();
        addButton.click();
        addButton.click();
        addButton.click();
View Full Code Here

    @Before
    public void testSetup() {
        openTestURL();
        WebElement nextButton = driver.findElement(By.id(BTN_NEXT_ID));
        nextButton.click();

        WebElement openModalButton = driver.findElement(By
                .id(BTN_OPEN_MODAL_ID));
        openModalButton.click();
    }
View Full Code Here

        WebElement nextButton = driver.findElement(By.id(BTN_NEXT_ID));
        nextButton.click();

        WebElement openModalButton = driver.findElement(By
                .id(BTN_OPEN_MODAL_ID));
        openModalButton.click();
    }

    /**
     * If there was a back navigation due to the backspace the next button
     * would've been added again
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.