Write a value to text box using Web Driver



The below code writes the value in the textbox with property ele

public void Textbox(String ele, String value) {
            WebElement element = driver.findElement(By.id(ele));

            if (element != null) {
                  element.clear();
                  element.sendKeys(value);
            }
      }

Contributed by Ch. Suma