selenium how to check the position of an element on a webpage code example
Example: how to verify position of an element in selenium
WebElement class has a get Location method with returns the top
left corner of the element
element.getLocation();