Selenium added the getRect method to WebElement in a recent release to return information about the size and location of the element. It seems to work correctly in Firefox, but not in Chrome or IE, which leads to the following error:
org.openqa.selenium.UnsupportedCommandException: unknown command: session/ee0ddaada8c9efaa4cd1e62dedf51bbe/element/0.7774730015224409-16/rect
Could anyone else make this feature work, or is it currently only implemented in Firefox?
source
share