focused property

Gets the element that currently has focus on the given page.

Implementation

@override
WebDriverPageLoaderElement get focused {
  return WebDriverPageLoaderElement.createFromElement(driver.activeElement!);
}