Future<Online> close_page(int index) async { var pages = await browser.pages; if (pages.length > index) { await pages[index].close(); } return this; }