Package com.crawljax.plugins.crawloverview.model

Examples of com.crawljax.plugins.crawloverview.model.CandidateElementPosition


  }

  @Override
  public boolean matches(Object item) {
    if (item instanceof CandidateElementPosition) {
      CandidateElementPosition element = (CandidateElementPosition) item;
      return element.getLeft() == actual.getLeft() && element.getTop() == actual.getTop()
              && element.getWidth() == actual.getWidth()
              && element.getHeight() == actual.getHeight();
    } else {
      return false;
    }
  }
View Full Code Here


    }
  }

  @Factory
  public static CandidateElementMatcher element(Point point, Dimension size) {
    return new CandidateElementMatcher(new CandidateElementPosition(null, point, size));
  }
View Full Code Here

  private CandidateElementPosition findElement(WebElement webElement,
          CandidateElement element) {
    Point location = webElement.getLocation();
    Dimension size = webElement.getSize();
    CandidateElementPosition renderedCandidateElement =
            new CandidateElementPosition(element.getIdentification().getValue(),
                    location, size);
    if (location.getY() < 0) {
      LOG.warn("Weird positioning {} for {}", webElement.getLocation(),
              renderedCandidateElement.getXpath());
    }
    return renderedCandidateElement;
  }
View Full Code Here

  private CandidateElementPosition findElement(WebElement webElement,
          CandidateElement element) {
    Point location = webElement.getLocation();
    Dimension size = webElement.getSize();
    CandidateElementPosition renderedCandidateElement =
            // TODO Check if element.getIdentification().getValue() is correct
            // replacement for
            // element.getXpath()
            new CandidateElementPosition(element.getIdentification().getValue(),
                    location, size);
    return renderedCandidateElement;
  }
View Full Code Here

  private CandidateElementPosition findElement(WebElement webElement,
          CandidateElement element) {
    Point location = webElement.getLocation();
    Dimension size = webElement.getSize();
    CandidateElementPosition renderedCandidateElement =
            new CandidateElementPosition(element.getIdentification().getValue(),
                    location, size);
    if (location.getY() < 0) {
      LOG.warn("Weird positioning {} for {}", webElement.getLocation(),
              renderedCandidateElement.getXpath());
    }
    return renderedCandidateElement;
  }
View Full Code Here

  private CandidateElementPosition findElement(WebElement webElement,
          CandidateElement element) {
    Point location = webElement.getLocation();
    Dimension size = webElement.getSize();
    CandidateElementPosition renderedCandidateElement =
            new CandidateElementPosition(element.getIdentification().getValue(),
                    location, size);
    if (location.getY() < 0) {
      LOG.warn("Weird positioning {} for {}", webElement.getLocation(),
              renderedCandidateElement.getXpath());
    }
    return renderedCandidateElement;
  }
View Full Code Here

TOP

Related Classes of com.crawljax.plugins.crawloverview.model.CandidateElementPosition

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.