While i was trying isNear() function with Direction.TOP on an element, to find the vertical spacing between two elements, the code returned 2px, while it should have been 42 to 44 px instead.
As per further analysis, the API didn't considered the top padding and line heights of the div of element.
Is there any way to find the vertical / horizontal spacing that includes the line heights and paddings on the element, and outputs total distance between elements?