eg: 2s delay after click Continue, #120

This commit is contained in:
Ralf Vogler 2023-04-07 10:23:19 +02:00
parent e22bb22a53
commit 28146c7d69

View file

@ -117,7 +117,8 @@ try {
// click Continue if 'This game contains mature content recommended only for ages 18+'
if (await page.locator('button:has-text("Continue")').count() > 0) {
console.log(' This game contains mature content recommended only for ages 18+');
await page.click('button:has-text("Continue")', { delay: 11 });
await page.click('button:has-text("Continue")', { delay: 111 });
await page.waitForTimeout(2000);
}
const title = await page.locator('h1').first().innerText();