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:
parent
eafb2316f7
commit
c8e0640490
1 changed files with 3 additions and 1 deletions
|
|
@ -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(_ => { });
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue