WebElement class has a get Location method with returns the top left corner of the element element.getLocation();