Package daveayan.gherkinsalad.components

Examples of daveayan.gherkinsalad.components.Elements


  }

  public void select_option_if_enabled(String option) {
    Element element = root_element();
    if(this.isEnabled()) {
      Elements options = element.findElements(By.tagName("option"));
      Element option_to_select = options.findFirstElementWithText(option);
      option_to_select.click();
    }
  }
View Full Code Here


  }
 
  public void select_code_if_enabled(String code) {
    Element element = root_element();
    if(this.isEnabled()) {
      Elements options = element.findElements(By.tagName("option"));
      for(Element o: options._nativeList()) {
        if(StringUtils.equals(o.getAttribute("value"), code)) {
          o.click();
          break;
        }
      }
View Full Code Here

TOP

Related Classes of daveayan.gherkinsalad.components.Elements

Copyright © 2018 www.massapicom. 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.