rl.question('please enter the link:', async function (link) {
rl.close();
await page.goto(link);
await delay(20000);
for (let i=0;i<pages;i++)
{
await page.screenshot({
fullPage: false,
path: i+'.jpeg',
clip: {
x: 190,
y: 28,
width: 590,
height: 790
}
});
await page.mouse.click(800, 469);
await delay(3500);
console.log(i);
}
await browser.close();
});