pages property

Future<List<Page>> pages

Future which resolves to a list of all open pages. Non visible pages, such as "background_page", will not be listed here. You can find them using Target.page.

A list of all pages inside the Browser. In case of multiple browser contexts, the method will return an array with all the pages in all browser contexts.

Implementation

Future<List<Page>> get pages async {
  var contextPages =
      await Future.wait(browserContexts.map((context) => context.pages));
  return contextPages.expand((l) => l).toList();
}