eg: #371: dump HTML in case of EULA popup to find new locator

https://github.com/vogler/free-games-claimer/issues/371
This commit is contained in:
Ralf Vogler 2024-08-29 12:46:28 +02:00
parent eafb2316f7
commit c8e0640490

View file

@ -215,8 +215,10 @@ try {
page.click('button:has-text("Yes, buy now")').catch(_ => { }); page.click('button:has-text("Yes, buy now")').catch(_ => { });
// Accept End User License Agreement (only needed once) // Accept End User License Agreement (only needed once)
page.locator('input#agree').waitFor().then(async () => { page.locator(':has-text("end user license agreement")').waitFor().then(async () => {
console.log(' Accept End User License Agreement (only needed once)'); console.log(' Accept End User License Agreement (only needed once)');
console.log(page.innerHTML);
console.log('Please report the HTML above here: https://github.com/vogler/free-games-claimer/issues/371');
await page.locator('input#agree').check(); // TODO Bundle: got stuck here await page.locator('input#agree').check(); // TODO Bundle: got stuck here
await page.locator('button:has-text("Accept")').click(); await page.locator('button:has-text("Accept")').click();
}).catch(_ => { }); }).catch(_ => { });