📅  最后修改于: 2022-03-11 15:04:01.143000             🧑  作者: Mango
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
});