Open cffgnu opened 1 year ago
use this const page = (await fakeBrowser.vanillaBrowser.pages())[0]
to select default page tab
sory, it not working because (await fakeBrowser.vanillaBrowser.pages()).length
return zero.
then zero index is a first tab
I'm using puppeteer have no issues
my example code:
let fakeBrowser = await builder.launch();
var pages = await fakeBrowser.vanillaBrowser.pages();
console.log(pages.length==0); //true
Please explain?
Can confirm. await fakeBrowser.vanillaBrowser.pages();
returns an empty array.
this library open 2 tab. tab 1: default , tab 2 by:
await fakeBrowser.vanillaBrowser.newPage()
. i want to remove default puppeteer tab. how to ?