pg: dlc: log url of dlc if account not linked, #180

This commit is contained in:
Ralf Vogler 2023-08-17 16:44:59 +02:00
parent 86832e7fe9
commit 5c8f8fc3fd

View file

@ -332,7 +332,7 @@ try {
if (await linkAccountButton.count()) { if (await linkAccountButton.count()) {
console.error(' Missing account linking:', await linkAccountButton.getAttribute('aria-label'), url); console.error(' Missing account linking:', await linkAccountButton.getAttribute('aria-label'), url);
} else if(await page.locator('text=Link game account').count()) { // epic-games only? } else if(await page.locator('text=Link game account').count()) { // epic-games only?
console.error(' Missing account linking:', await page.locator('button[data-a-target="gms-cta"]').innerText()); console.error(' Missing account linking:', await page.locator('button[data-a-target="gms-cta"]').innerText(), url);
} else { } else {
const code = await page.inputValue('input[type="text"]'); const code = await page.inputValue('input[type="text"]');
console.log(' Code to redeem game:', code); console.log(' Code to redeem game:', code);