eg: try click delay for #120

This commit is contained in:
Ralf Vogler 2023-04-07 09:50:40 +02:00
parent 6cbd9fe5e3
commit e22bb22a53

View file

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