Closed mehrdad86 closed 2 years ago
I use userAction.simClickElement its ok when headless false but when I change headless to true i get this error "Ubable to get active page"
I've faced with the same issue and here is my workaround:
const fakebrowser = await builder.launch();
const oldPage = await fakebrowser.getActivePage();
const page = await fakebrowser.vanillaBrowser.newPage();
await oldPage.close();
It happens because the chrome starts with an opened page.
I use userAction.simClickElement its ok when headless false but when I change headless to true i get this error "Ubable to get active page"