Examples of EventableCondition


Examples of com.crawljax.condition.eventablecondition.EventableCondition

    if (crawlElement.getTagName() == null) {
      return result.build();
    }

    EventableCondition eventableCondition =
            eventableConditionChecker.getEventableCondition(crawlElement.getId());
    // TODO Stefan; this part of the code should be re-factored, Hack-ed it this way to prevent
    // performance problems.
    ImmutableList<String> expressions = getFullXpathForGivenXpath(dom, eventableCondition);
View Full Code Here

Examples of com.crawljax.condition.eventablecondition.EventableCondition

    return false;
  }

  private void evaluateElement(Builder<CandidateElement> results, String relatedFrame,
          CrawlElement crawl, Element sourceElement) {
    EventableCondition eventableCondition =
            checkedElements.getEventableConditionChecker().getEventableCondition(
                    crawl.getId());
    String xpath = XPathHelper.getXPathExpression(sourceElement);
    // get multiple candidate elements when there are input
    // fields connected to this element

    List<CandidateElement> candidateElements = new ArrayList<CandidateElement>();
    if (eventableCondition != null && eventableCondition.getLinkedInputFields() != null
            && eventableCondition.getLinkedInputFields().size() > 0) {
      // add multiple candidate elements, for every input
      // value combination
      candidateElements =
              formHandler.getCandidateElementsForInputs(sourceElement, eventableCondition);
    } else {
View Full Code Here

Examples of com.crawljax.condition.eventablecondition.EventableCondition

    }

    for (CrawlElement crawlElem : excludeCrawlElements
            .get(element.getTagName().toUpperCase())) {
      boolean matchesXPath = false;
      EventableCondition eventableCondition =
              eventableConditionChecker.getEventableCondition(crawlElem.getId());
      try {
        String asXpath = XPathHelper.getXPathExpression(element);
        matchesXPath =
                eventableConditionChecker.checkXpathStartsWithXpathEventableCondition(
View Full Code Here

Examples of com.crawljax.condition.eventablecondition.EventableCondition

  public EventableCondition getEventableCondition() {
    if ((getWithXpathExpression() == null || getWithXpathExpression().equals(""))
            && getConditions().isEmpty() && getInputFieldIds().isEmpty()) {
      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

Examples of com.crawljax.condition.eventablecondition.EventableCondition

    if (crawlElement.getTagName() == null) {
      return result.build();
    }

    EventableCondition eventableCondition =
            eventableConditionChecker.getEventableCondition(crawlElement.getId());
    // TODO Stefan; this part of the code should be re-factored, Hack-ed it this way to prevent
    // performance problems.
    ImmutableList<String> expressions = getFullXpathForGivenXpath(dom, eventableCondition);
View Full Code Here

Examples of com.crawljax.condition.eventablecondition.EventableCondition

    return false;
  }

  private void evaluateElement(Builder<CandidateElement> results, String relatedFrame,
          CrawlElement crawl, Element sourceElement) {
    EventableCondition eventableCondition =
            checkedElements.getEventableConditionChecker().getEventableCondition(
                    crawl.getId());
    String xpath = XPathHelper.getXPathExpression(sourceElement);
    // get multiple candidate elements when there are input
    // fields connected to this element

    List<CandidateElement> candidateElements = new ArrayList<CandidateElement>();
    if (eventableCondition != null && eventableCondition.getLinkedInputFields() != null
            && eventableCondition.getLinkedInputFields().size() > 0) {
      // add multiple candidate elements, for every input
      // value combination
      candidateElements =
              formHandler.getCandidateElementsForInputs(sourceElement, eventableCondition);
    } else {
View Full Code Here

Examples of com.crawljax.condition.eventablecondition.EventableCondition

    }

    for (CrawlElement crawlElem : excludeCrawlElements
            .get(element.getTagName().toUpperCase())) {
      boolean matchesXPath = false;
      EventableCondition eventableCondition =
              eventableConditionChecker.getEventableCondition(crawlElem.getId());
      try {
        String asXpath = XPathHelper.getXPathExpression(element);
        matchesXPath =
                eventableConditionChecker.checkXpathStartsWithXpathEventableCondition(
View Full Code Here

Examples of com.crawljax.condition.eventablecondition.EventableCondition

  public EventableCondition getEventableCondition() {
    if ((getWithXpathExpression() == null || getWithXpathExpression().equals(""))
            && getConditions().isEmpty() && getInputFieldIds().isEmpty()) {
      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

Examples of com.crawljax.condition.eventablecondition.EventableCondition

    if (crawlElement.getTagName() == null) {
      return result.build();
    }

    EventableCondition eventableCondition =
            eventableConditionChecker.getEventableCondition(crawlElement.getId());
    // TODO Stefan; this part of the code should be re-factored, Hack-ed it this way to prevent
    // performance problems.
    ImmutableList<String> expressions = getFullXpathForGivenXpath(dom, eventableCondition);
View Full Code Here

Examples of com.crawljax.condition.eventablecondition.EventableCondition

    return false;
  }

  private void evaluateElement(List<CandidateElement> results, String relatedFrame,
          CrawlElement crawl, Element sourceElement) {
    EventableCondition eventableCondition =
            checkedElements.getEventableConditionChecker().getEventableCondition(
                    crawl.getId());
    String xpath = XPathHelper.getXPathExpression(sourceElement);
    // get multiple candidate elements when there are input
    // fields connected to this element

    List<CandidateElement> candidateElements = new ArrayList<CandidateElement>();
    if (eventableCondition != null && eventableCondition.getLinkedInputFields() != null
            && eventableCondition.getLinkedInputFields().size() > 0) {
      // add multiple candidate elements, for every input
      // value combination
      candidateElements =
              formHandler.getCandidateElementsForInputs(sourceElement, eventableCondition);
    } else {
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.