new_tab method

Future<Online> new_tab(
  1. AbstractUrl url, {
  2. bool show = true,
})

Implementation

Future<Online> new_tab(AbstractUrl url, {bool show = true}) async {
  if (show) Show.action('opening', 'new tab');
  final p = await (await browser).newPage();
  await p.goto(url.url, wait: Until.domContentLoaded);
  return this;
}