await page.keyboard.type(test);
console.log("press 0 to continue")
let choice = prompt('["0"]>')
if (choice == 0) {
console.log("ok")
await page.click('[class="form-submit"]')
await delay(1000);
}
After confirming in my code, I want the button to be clicked, but it clicks directly on the button and when I press 0 it gives the following error
throw new Error('Execution context was destroyed, most likely because of a navigation.');
^
Error: Execution context was destroyed, most likely because of a navigation.