public Boolean elementExists(String targetImgPath){
  Point2D coords=getCoords(takeScreenshot(),targetImgPath);
  return (coords.getX() >= 0) && (coords.getY() >= 0);
}

public Boolean elementExists ( String targetImgPath ) { Point2D coords = getCoords ( takeScreenshot ( ) , targetImgPath ) ; return ( coords . getX ( ) >= 0 ) && ( coords . getY ( ) >= 0 ) ; }
convenience method that returns true if the element is visible on the screen . used as an expected condition in waituntilimageexists
