DecoratedWebElement extends DecoratedChild<WebElement,DecoratedWebDriver> implements WebElement, WrapsElement, Locatable { @Override public Rectangle getRect() { return getOriginal().getRect(); } DecoratedWebElement(final WebElement element, final DecoratedWebDriver driverWrapper); @Override final WebElement getWrappedElement(); @Override void click(); @Override void submit(); @Override void sendKeys(final CharSequence... keysToSend); @Override void clear(); @Override String getTagName(); @Override String getAttribute(final String name); @Override boolean isSelected(); @Override boolean isEnabled(); @Override String getText(); @Override List<WebElement> findElements(final By by); @Override WebElement findElement(final By by); @Override boolean isDisplayed(); @Override Point getLocation(); @Override Dimension getSize(); @Override Rectangle getRect(); @Override String getCssValue(final String propertyName); Coordinates getCoordinates(); @Override X getScreenshotAs(OutputType<X> outputType);  }
@Test void testGetRect() { verifyFunction(WebElement::getRect, new Rectangle(new Point(10, 20), new Dimension(100, 200))); }