lastPage method

Future<Page> lastPage()

Implementation

Future<Page> lastPage() async {
  var pages = await browser.pages;
  if (pages.length > 0) {
    return pages.last;
  } else {
    return await browser.newPage();
  }
}