
The new getRect() method is introduced in WebDriver which is a combination of previous getSize() and getLocation() methods.
In Selenium 4, new getRect() method which returns a Rectangle object, and then you can directly get height, width and X/Y co-ordinates of element.
0 Comments