@Test void testActiveElement() { WebElement active = mock(WebElement.class); verifyDecoratingFunction(WebDriver.TargetLocator::activeElement, active, WebElement::click); }
@Override public WebElement activeElement() { return getTopmostDecorated().createDecorated(getOriginal().activeElement()).getActivated(); }
DecoratedTargetLocator extends DecoratedChild<WebDriver.TargetLocator,DecoratedWebDriver> implements WebDriver.TargetLocator { @Override public WebElement activeElement() { return getTopmostDecorated().createDecorated(getOriginal().activeElement()).getActivated(); } }
DecoratedTargetLocator extends DecoratedChild<WebDriver.TargetLocator,DecoratedWebDriver> implements WebDriver.TargetLocator { @Override public WebElement activeElement() { return getTopmostDecorated().createDecorated(getOriginal().activeElement()).getActivated(); } DecoratedTargetLocator(final WebDriver.TargetLocator targetLocator, final DecoratedWebDriver driverWrapper); }
DecoratedTargetLocator extends DecoratedChild<WebDriver.TargetLocator,DecoratedWebDriver> implements WebDriver.TargetLocator { @Override public WebElement activeElement() { return getTopmostDecorated().createDecorated(getOriginal().activeElement()).getActivated(); } DecoratedTargetLocator(final WebDriver.TargetLocator targetLocator, final DecoratedWebDriver driverWrapper); @Override WebDriver frame(int frameIndex); @Override WebDriver frame(String frameName); @Override WebDriver frame(WebElement frameElement); @Override WebDriver parentFrame(); @Override WebDriver window(String windowName); @Override WebDriver defaultContent(); @Override WebElement activeElement(); @Override Alert alert(); }
DecoratedTargetLocator extends DecoratedChild<WebDriver.TargetLocator,DecoratedWebDriver> implements WebDriver.TargetLocator { @Override public WebElement activeElement() { return getTopmostDecorated().createDecorated(getOriginal().activeElement()).getActivated(); } DecoratedTargetLocator(final WebDriver.TargetLocator targetLocator, final DecoratedWebDriver driverWrapper); @Override WebDriver frame(int frameIndex); @Override WebDriver frame(String frameName); @Override WebDriver frame(WebElement frameElement); @Override WebDriver parentFrame(); @Override WebDriver window(String windowName); @Override WebDriver defaultContent(); @Override WebElement activeElement(); @Override Alert alert();  }