eg: click 'Yes, buy now' if 'This edition contains something you already have. Still interested?'
Happened for add-on https://store.epicgames.com/en-US/p/the-sims-4--the-daring-lifestyle-bundle
This commit is contained in:
parent
8f174c4bf0
commit
6b13287b61
1 changed files with 3 additions and 0 deletions
|
|
@ -155,6 +155,9 @@ try {
|
||||||
// click Continue if 'Device not supported. This product is not compatible with your current device.' - avoided by Windows userAgent?
|
// click Continue if 'Device not supported. This product is not compatible with your current device.' - avoided by Windows userAgent?
|
||||||
page.click('button:has-text("Continue")').catch(_ => { }); // needed since change from Chromium to Firefox?
|
page.click('button:has-text("Continue")').catch(_ => { }); // needed since change from Chromium to Firefox?
|
||||||
|
|
||||||
|
// click 'Yes, buy now' if 'This edition contains something you already have. Still interested?'
|
||||||
|
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('input#agree').waitFor().then(async () => {
|
||||||
console.log('Accept End User License Agreement (only needed once)');
|
console.log('Accept End User License Agreement (only needed once)');
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue