Função de atraso personalizado para wait para marionetistas
function waitFor(delay) {
return new Promise(resolve => setTimeout(resolve, delay));
}
page.evaluate(async() => {
//Define your waitFor function
//Code to execute before
await waitFor(1000);
//Code to execute after the 1000ms time delay
});
Cool Saint