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;
}