Examples of sendKeys()


Examples of com.vaadin.testbench.TestBenchElement.sendKeys()

                By.className("v-tabsheet-tabitemcell"));
        tab.click(10, 10);

        Point oldLocation = tab.getLocation();

        tab.sendKeys(Keys.SPACE);

        Point newLocation = tab.getLocation();

        Assert.assertEquals(oldLocation, newLocation);
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.MenuBarElement.sendKeys()

    public void testEnableParentLayout() {
        openTestURL();

        MenuBarElement menu = $(MenuBarElement.class).get(0);
        menu.focus();
        menu.sendKeys(Keys.ARROW_RIGHT);
        menu.sendKeys(Keys.ENTER);

        List<WebElement> captions = driver.findElements(By
                .className("v-menubar-menuitem-caption"));
        boolean found = false;
View Full Code Here

Examples of com.vaadin.testbench.elements.TextAreaElement.sendKeys()

        StringBuilder text = new StringBuilder();
        for(int i=0;i < 20;i++) {
            text.append("之は日本語です、テストです。");
        }

        textArea.sendKeys(text.toString());

        clearDebugMessages();

        findElement(By.tagName("body")).click();
View Full Code Here

Examples of com.vaadin.testbench.elements.TextFieldElement.sendKeys()

    public void testWithFocusOnInput() throws Exception {

        TextFieldElement textField = getTextField();

        // Try to delete characters in a text field.
        textField.sendKeys("textt");
        textField.sendKeys(BACK_SPACE);
        assertEquals("text", textField.getValue());
        checkButtonsCount();
    }
View Full Code Here

Examples of com.vaadin.testbench.elements.TextFieldElement.sendKeys()

        TextFieldElement textField = getTextField();

        // Try to delete characters in a text field.
        textField.sendKeys("textt");
        textField.sendKeys(BACK_SPACE);
        assertEquals("text", textField.getValue());
        checkButtonsCount();
    }

    /**
 
View Full Code Here

Examples of com.vaadin.testbench.elements.TextFieldElement.sendKeys()

    @Test
    public void testWithFocusOnBottom() throws Exception {
        TextFieldElement textField = getTextField();

        // tab in last field set focus on bottom component
        textField.sendKeys(TAB);

        // Try to send back actions to the browser.
        new Actions(getDriver()).sendKeys(BACK_SPACE).perform();

        checkButtonsCount();
View Full Code Here

Examples of com.vaadin.testbench.elements.TextFieldElement.sendKeys()

        waitForElementVisible(By.className("v-textfield"));

        TextFieldElement textfield = $(TextFieldElement.class).first();
        textfield.focus();
        textfield.sendKeys("test");

        $(ButtonElement.class).first().click();

        new Actions(getDriver()).contextClick(textfield).perform();
View Full Code Here

Examples of daveayan.gherkinsalad.components.Element.sendKeys()

  public void enter_text_if_enabled(String text) {
    Element element = root_element();
    if(this.isEnabled()) {
      wait_between_steps();
      element.clear();
      element.sendKeys(text);
      action("Entered text '" + text + "' in " + this);
    } else {
      action("Did not enter text '" + text + "' in disabled text field '" + this + "'");
    }
  }
View Full Code Here

Examples of daveayan.gherkinsalad.components.core.Element.sendKeys()

  public void enter_text_if_enabled(String text) {
    Element element = root_element();
    if(this.isEnabled()) {
      wait_between_steps();
      element.clear();
      element.sendKeys(text);
      action("Entered text '" + text + "' in " + this);
    } else {
      action("Did not enter text in element '" + this + "' since it is not enabled");
    }
  }
View Full Code Here

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

    } catch (NoAlertPresentException e) {
      // expected
    }
    el.click();
    Alert alert = d.switchTo().alert();
    alert.sendKeys("test");
    alert.accept();
  }


  @DataProvider(name = "allAlerts")
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.