getElementsByCss method

  1. @override
List<PageLoaderElement> getElementsByCss(
  1. String selector
)
override

Returns the elements within this element that match the given CSS selector.

Implementation

@override
List<PageLoaderElement> getElementsByCss(String selector) =>
    _retryWhenStale(() {
      final element = _single;
      return element
          .querySelectorAll(selector)
          .map((elem) => HtmlPageLoaderElement.createFromElement(elem,
              externalSyncFn: syncFn))
          .toList();
    });