Package com.crawljax.condition.eventablecondition

Examples of com.crawljax.condition.eventablecondition.EventableCondition


   * @return The eventableConditions.
   */
  protected List<EventableCondition> getEventableConditions() {
    List<EventableCondition> eventableConditions = new ArrayList<EventableCondition>();
    for (CrawlElement crawlTag : getAllCrawlElements()) {
      EventableCondition eventableCondition = crawlTag.getEventableCondition();
      if (eventableCondition != null) {
        eventableConditions.add(eventableCondition);
      }
    }

View Full Code Here


  protected EventableCondition getEventableCondition() {
    if ((getWithXpathExpression() == null || getWithXpathExpression().equals(""))
            && getConditions().size() == 0 && getInputFieldIds().size() == 0) {
      return null;
    }
    EventableCondition eventableCondition = new EventableCondition(getId());
    if (getWithXpathExpression() != null && !getWithXpathExpression().equals("")) {
      eventableCondition.setInXPath(getWithXpathExpression());
    }
    if (getConditions().size() > 0) {
      eventableCondition.setConditions(getConditions());
    }
    if (getInputFieldIds().size() > 0) {
      eventableCondition.setLinkedInputFields(getInputFieldIds());
    }
    return eventableCondition;
  }
View Full Code Here

TOP

Related Classes of com.crawljax.condition.eventablecondition.EventableCondition

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.