byTag method

  1. @override
PageLoaderElement byTag(
  1. String tag
)
override

Gets the current root element for the DOM.

This is element you should pass in your tests to create new page objects.

Implementation

@override
PageLoaderElement byTag(String tag) =>
    HtmlPageLoaderElement.createFromElement(document.body,
            externalSyncFn: syncFn)
        .getElementsByCss(tag)
        .single;