Selenium 4 – getRect() for element size & position
With Selenium 4, the getRect() introduced to fetch the element position with respect to top left corner of element and the element size instead of using 2 different methods as getLocation() & getSize() to achieve the same [selenium <= 3.x versions]. Prior to selenium 4, you have use getLocation() to fetch the X & Y…