Package daveayan.gherkinsalad.components.core

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


  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


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

  public void enter_text_if_enabled(String text) {
    Element element = root_element();
    if(this.isDisplayed() && 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

  public void append_text_if_enabled(String text) {
    Element element = root_element();
    if(this.isDisplayed() && this.isEnabled()) {
      wait_between_steps();
      String current_text = element.getAttribute("value");
      element.clear();
      element.sendKeys(text + current_text);
      action("Appended text '" + text + "' in " + this);
    } else {
      action("Did not append text '" + text + "' in disabled text field '" + this + "'");
    }
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.