pg: fix #142: PG_CLAIMDLC locator 'a' resolved to 2 elements
This commit is contained in:
parent
491ee899a5
commit
290fe289d4
1 changed files with 1 additions and 1 deletions
|
|
@ -259,7 +259,7 @@ try {
|
|||
const dlcs = await Promise.all(cards.map(async card => ({
|
||||
game: await card.locator('.item-card-details__body p').innerText(),
|
||||
title: await card.locator('.item-card-details__body__primary').innerText(),
|
||||
url: 'https://gaming.amazon.com' + await card.locator('a').getAttribute('href'),
|
||||
url: 'https://gaming.amazon.com' + await card.locator('a').first().getAttribute('href'),
|
||||
})));
|
||||
// console.log(dlcs);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue