Package com.crawljax.core

Examples of com.crawljax.core.CandidateElement


      // clone node inclusive text content
      Element cloneElement = (Element) sourceElement.cloneNode(false);
      cloneElement.setTextContent(DomUtils.getTextValue(sourceElement));

      CandidateElement candidateElement =
              new CandidateElement(cloneElement,
                      XPathHelper.getXPathExpression(sourceElement),
                      formInputsForCurrentIndex);
      candidateElements.add(candidateElement);
    }
    return candidateElements;
View Full Code Here


        if (state.getName().equals("state8")) {
          /**
           * Add to miss invocation for the OnFireEventFaild plugin.
           */
          // This is a bit ugly; but hey it works, and is checked above..
          CandidateElement candidate = candidateElements.get(0);
          HTMLAnchorElementImpl impl = (HTMLAnchorElementImpl) candidate.getElement();
          impl.setName("fail");
          impl.setId("eventually");
          impl.setHref("will");
          impl.setTextContent("This");
          candidate.getIdentification().setValue("/HTML[1]/BODY[1]/FAILED[1]/A[1]");
        }
      }

    });

View Full Code Here

      // clone node inclusive text content
      Element cloneElement = (Element) sourceElement.cloneNode(false);
      cloneElement.setTextContent(DomUtils.getTextValue(sourceElement));

      CandidateElement candidateElement =
              new CandidateElement(cloneElement,
                      XPathHelper.getXPathExpression(sourceElement),
                      formInputsForCurrentIndex);
      candidateElements.add(candidateElement);
    }
    return candidateElements;
View Full Code Here

      // clone node inclusive text content
      Element cloneElement = (Element) sourceElement.cloneNode(false);
      cloneElement.setTextContent(Helper.getTextValue(sourceElement));

      CandidateElement candidateElement =
              new CandidateElement(cloneElement,
                      XPathHelper.getXPathExpression(sourceElement));
      candidateElement.setFormInputs(formInputsForCurrentIndex);
      candidateElements.add(candidateElement);
    }
    return candidateElements;
  }
View Full Code Here

  public List<CandidateElement> getUnprocessedCandidateElements() {
    List<CandidateElement> list = new ArrayList<CandidateElement>();
    if (candidateActions == null) {
      return list;
    }
    CandidateElement last = null;
    for (CandidateCrawlAction candidateAction : candidateActions) {
      if (last != candidateAction.getCandidateElement()) {
        last = candidateAction.getCandidateElement();
        list.add(last);
      }
View Full Code Here

  public List<CandidateElement> getUnprocessedCandidateElements() {
    List<CandidateElement> list = new ArrayList<CandidateElement>();
    if (candidateActions == null) {
      return list;
    }
    CandidateElement last = null;
    for (CandidateCrawlAction candidateAction : candidateActions) {
      if (last != candidateAction.getCandidateElement()) {
        last = candidateAction.getCandidateElement();
        list.add(last);
      }
View Full Code Here

      // clone node inclusive text content
      Element cloneElement = (Element) sourceElement.cloneNode(false);
      cloneElement.setTextContent(Helper.getTextValue(sourceElement));

      CandidateElement candidateElement =
              new CandidateElement(cloneElement, XPathHelper
                      .getXPathExpression(sourceElement));
      candidateElement.setFormInputs(formInputsForCurrentIndex);
      candidateElements.add(candidateElement);
    }
    return candidateElements;
  }
View Full Code Here

  public List<CandidateElement> getUnprocessedCandidateElements() {
    List<CandidateElement> list = new ArrayList<CandidateElement>();
    if (candidateActions == null) {
      return list;
    }
    CandidateElement last = null;
    for (CandidateCrawlAction candidateAction : candidateActions) {
      if (last != candidateAction.getCandidateElement()) {
        last = candidateAction.getCandidateElement();
        list.add(last);
      }
View Full Code Here

      // clone node inclusive text content
      Element cloneElement = (Element) sourceElement.cloneNode(false);
      cloneElement.setTextContent(Helper.getTextValue(sourceElement));

      CandidateElement candidateElement =
              new CandidateElement(cloneElement, XPathHelper
                      .getXPathExpression(sourceElement));
      candidateElement.setFormInputs(formInputsForCurrentIndex);
      candidateElements.add(candidateElement);
    }
    return candidateElements;
  }
View Full Code Here

TOP

Related Classes of com.crawljax.core.CandidateElement

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.