Examples of sendKeys()


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

        WebElement cell = browser.findElement(ByJQuery.selector(".rf-edt-c-column2 .rf-edt-c-cnt:last"));
        Assert.assertEquals("6", cell.getText());

        WebElement filterInput = browser.findElement(By.id("myForm:edt:filterInput"));
        filterInput.clear();
        filterInput.sendKeys("3");
        guardAjax(filterInput).sendKeys(Keys.TAB);
        Graphene.waitAjax().until().element(ByJQuery.selector(".rf-edt-c-column2 .rf-edt-c-cnt:last")).text().equalTo("3");

        // when / then
        Warp.initiate(new Activity() {
View Full Code Here

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

    public void client_side_validation_msg() {
        // given
        browser.get(contextPath.toExternalForm());
        WebElement input = browser.findElement(By.id("myForm:input1"));

        input.sendKeys("RichFaces");
        Graphene.guardNoRequest(input).sendKeys(Keys.TAB);

        WebElement message = browser.findElement(By.id("myForm:msg1"));
        Assert.assertEquals("Validation message", "Input 1: max 4 characters", message.getText());
    }
View Full Code Here

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

        List<WebElement> cells = browser.findElements(By.cssSelector(".rf-edt-c-column2 .rf-edt-c-cnt"));
        Assert.assertEquals("Number of rows present", 10, cells.size());

        final WebElement filterInput = browser.findElement(By.id("myForm:edt:column2:flt"));
        filterInput.clear();
        filterInput.sendKeys("3");
        Warp.initiate(new Activity() {
            @Override
            public void perform() {
                filterInput.sendKeys(Keys.TAB);
            }
View Full Code Here

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

        filterInput.clear();
        filterInput.sendKeys("3");
        Warp.initiate(new Activity() {
            @Override
            public void perform() {
                filterInput.sendKeys(Keys.TAB);
            }
        }).inspect(new Inspection() {
            private static final long serialVersionUID = 1L;

            @Inject IterationBuiltInBean iterationBuiltInBean;
View Full Code Here

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

        Assert.assertEquals("Value of the first cell of the second column", "3", cells.get(0).getText());
        Assert.assertEquals("Number of rows present", 10, cells.size());

        WebElement filterInput = browser.findElement(By.id("myForm:edt:column2:flt"));
        filterInput.clear();
        filterInput.sendKeys("3");
        guardAjax(filterInput).sendKeys(Keys.TAB);
        cells = browser.findElements(By.cssSelector(".rf-edt-c-column2 .rf-edt-c-cnt"));
        Assert.assertEquals("Value of the first cell of the second column", "3", cells.get(0).getText());
        Assert.assertEquals("Number of rows present", 4, cells.size());
    }
View Full Code Here

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

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

        WebElement button = getDriver().findElement(By.className("v-button"));
        button.sendKeys(Keys.SPACE);

        checkCoordinates(button);
    }

    @Test
View Full Code Here

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

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

        WebElement button = getDriver().findElement(By.className("v-button"));
        button.sendKeys(Keys.ENTER);

        checkCoordinates(button);
    }

    private void checkCoordinates(WebElement button) {
View Full Code Here

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

    private void fillPathToUploadInput(String tempFileName) throws Exception {
        // create a valid path in upload input element. Instead of selecting a
        // file by some file browsing dialog, we use the local path directly.
        WebElement input = getInput();
        setLocalFileDetector(input);
        input.sendKeys(tempFileName);
    }

    private WebElement getSubmitButton() {
        UploadElement upload = $(UploadElement.class).first();
        WebElement submitButton = upload.findElement(By.className("v-button"));
View Full Code Here

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

        // Send ESC to the select element to simulate user being
        // focused on the select while hitting the ESC key.
        WebElement select = driver.findElement(By
                .cssSelector(".v-datefield-popup select:first-child"));
        select.sendKeys(Keys.ESCAPE);
        assertFalse(isPopupVisible());
    }

    @Test
    public void testPopupClosingDayResolution() {
View Full Code Here

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

    }

    private void closePopupDateField() {
        WebElement element = driver.findElement(By
                .cssSelector(".v-datefield-calendarpanel"));
        element.sendKeys(Keys.ESCAPE);
    }
}
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.