(page)
| 18 | } |
| 19 | |
| 20 | async function humanLikeInteraction(page) { |
| 21 | await page.mouse.move(100, 100); |
| 22 | await sleep(Math.random() * 1000 + 500); |
| 23 | await page.mouse.move(200, 300); |
| 24 | await sleep(Math.random() * 1000 + 500); |
| 25 | await page.evaluate(() => window.scrollBy(0, window.innerHeight / 2)); |
| 26 | await sleep(Math.random() * 1000 + 1000); |
| 27 | } |
| 28 | |
| 29 | (async () => { |
| 30 | const proxy = PROXIES[Math.floor(Math.random() * PROXIES.length)]; |
no test coverage detected