root property
Gets the root element for the given page.
Caches the WebDriverPageLoaderElement used between calls to allow listeners to persist.
Implementation
@override
WebDriverPageLoaderElement get root {
_cachedRoot ??= WebDriverPageLoaderElement(driver);
return _cachedRoot!;
}