close_all_pages method

Future<Online> close_all_pages()

Implementation

Future<Online> close_all_pages() async {
  var pages = await browser.pages;
  for (var page in pages) {
    await (await page).close();
  }
  return this;
}