Friday, April 19, 2013

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

Best practices for test automation in agile software development

  Agile software development is a highly iterative and collaborative approach to software development that emphasizes flexibility and a...