@Test void testGetCoordinates() { final Coordinates coords = mock(Coordinates.class); verifyDecoratingFunction($ -> ((Locatable) $).getCoordinates(), coords, Coordinates::onScreen); }
public Coordinates getCoordinates() { Locatable locatable = (Locatable) getOriginal(); return new Activator<Coordinates>().activate(getTopmostDecorated().createDecorated(locatable.getCoordinates())); }
DecoratedWebElement extends DecoratedChild<WebElement,DecoratedWebDriver> implements WebElement, WrapsElement, Locatable { public Coordinates getCoordinates() { Locatable locatable = (Locatable) getOriginal(); return new Activator<Coordinates>().activate(getTopmostDecorated().createDecorated(locatable.getCoordinates())); } }
DecoratedWebElement extends DecoratedChild<WebElement,DecoratedWebDriver> implements WebElement, WrapsElement, Locatable { public Coordinates getCoordinates() { Locatable locatable = (Locatable) getOriginal(); return new Activator<Coordinates>().activate(getTopmostDecorated().createDecorated(locatable.getCoordinates())); } DecoratedWebElement(final WebElement element, final DecoratedWebDriver driverWrapper); }
DecoratedWebElement extends DecoratedChild<WebElement,DecoratedWebDriver> implements WebElement, WrapsElement, Locatable { public Coordinates getCoordinates() { Locatable locatable = (Locatable) getOriginal(); return new Activator<Coordinates>().activate(getTopmostDecorated().createDecorated(locatable.getCoordinates())); } 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); }
DecoratedWebElement extends DecoratedChild<WebElement,DecoratedWebDriver> implements WebElement, WrapsElement, Locatable { public Coordinates getCoordinates() { Locatable locatable = (Locatable) getOriginal(); return new Activator<Coordinates>().activate(getTopmostDecorated().createDecorated(locatable.getCoordinates())); } 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);  }