createList method

  1. @override
List<PageLoaderElement> createList(
  1. Finder finder,
  2. List<Filter> filter,
  3. List<Checker> checkers
)
override

Create a new list using the current element as the parent context.

Implementation

@override
List<PageLoaderElement> createList(
    Finder finder, List<Filter> filter, List<Checker> checkers) {
  final rootElement = createElement(finder, filter, checkers);
  final createdList = (rootElement.elements)
      .map((elem) => WebDriverPageLoaderElement.createFromElement(elem))
      .toList();
  createdList.forEach((elem) => elem.addListeners(_listeners));
  return createdList;
}