Package org.openqa.selenium

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


  @Override
  public boolean input(Identification identification, String text) {
    try {
      WebElement field = browser.findElement(identification.getWebDriverBy());
      if (field != null) {
        field.clear();
        field.sendKeys(text);

        return true;
      }
      return false;
View Full Code Here


    }


    private void changeFieldValue(String fieldId, String value) {
        final WebElement field = portal.findElement(By.id(fieldId));
        field.clear();
        field.sendKeys(value);
    }

    private void sleep(long milis) {
        try {
View Full Code Here

        relationshipStatus.selectByValue(status);
    }

    private void changeFieldValue(String fieldId, String value) {
        final WebElement field = portal.findElement(By.id(fieldId));
        field.clear();
        field.sendKeys(value);
    }

    @When("I submit the edit profile form")
    public void submitProfileForm() {
View Full Code Here

    @When("I change the name of the category to \"$categoryName\"")
    public void fillInUpdatedCategory(String categoryName) {
        WebElement form = portal.findElement(By.id("updateCategory"));
        WebElement field = form.findElement(By.id("text"));
        field.clear();
        field.sendKeys(categoryName);
    }

    @When("I click the \"Update Category\" button")
    public void clickUpdateCategoryButton() {
View Full Code Here

  public static void inputText(WebDriver driver, String search,
      String inputText) throws Exception {
    WebElement element = SeleniumUtils.findElement(driver, search, true, true);

    //clear text before adding input
    element.clear();
   
    // Would make send to check if this element is really an input text
    element.sendKeys(inputText);
  }
View Full Code Here

    mouseDirector.openColumnContextMenu(5);//column F
   
    click(".z-menupopup:visible .zsmenuitem-columnWidth");
    JQuery $input = jq("$headerSize");
    WebElement input = $input.getWebElement();
    input.clear();
    input.sendKeys("120");
    new JavascriptActions(webDriver)
    .keyDown($input, Keycode.ENTER.intValue())
    .keyUp($input, Keycode.ENTER.intValue())
    .perform();
View Full Code Here

  @Override
  public boolean input(Identification identification, String text) {
    try {
      WebElement field = browser.findElement(identification.getWebDriverBy());
      if (field != null) {
        field.clear();
        field.sendKeys(text);

        return true;
      }
      return false;
View Full Code Here

  }

  public void changeName(String newName) {
    String pathName = "//input[@id = \"name\" ]";
    WebElement field = getDriver().findElement(By.xpath(pathName));
    field.clear();
    field.sendKeys(newName);
  }

  public boolean navigateToPermissionsTab() {
    String linkText = "access permissions";
View Full Code Here

                dateBox1.addValueChangeHandler(eventsListener);
            }
        });

        element = findElementById("dateBox1");
        element.clear();
        final PValueChangeEvent<Date> e1 = eventsListener.poll();
        Assert.assertNull(e1.getValue());

        element.click();
        element.sendKeys("");
View Full Code Here

    @When("I change the name of the category to \"$categoryName\"")
    public void fillInUpdatedCategory(String categoryName) {
        WebElement form = portal.findElement(By.id("updateCategory"));
        WebElement field = form.findElement(By.id("text"));
        field.clear();
        field.sendKeys(categoryName);
    }

    @When("I click the \"Update Category\" button")
    public void clickUpdateCategoryButton() {
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.