vogler / free-games-claimer

Automatically claims free games on the Epic Games Store, Amazon Prime Gaming and GOG.
GNU Affero General Public License v3.0
2.48k stars 150 forks source link

`PG_CLAIMDLC` locator 'a' resolved to 2 elements #142

Closed Nackophilz closed 1 year ago

Nackophilz commented 1 year ago

Hi! Since the last update I don't get Telegram notifications anymore, my Docker configuration hasn't changed, only the version of your application

Here is the error for the notification:

error: Command failed: apprise tgram://*****:*****/***** -i html '-t FreeGames' -b 'prime-gaming failed: locator.getAttribute: Error: strict mode violation: locator('div[data-a-target="offer-list-IN_GAME_LOOT"] [data-a-target="item-card"]:has(p:text-is("Claim"))').first().locator('a') resolved to 2 elements:'
vogler commented 1 year ago

Seems like DLCs now have two a tags. Let me know if the fix does not work.

Nackophilz commented 1 year ago

Hey !

Good, notification work again

But their is a problem for claimin DLC

After the first DLC is claimed , he just freeze, then go to timeout :

page.inputValue: Timeout 60000ms exceeded.
=========================== logs ===========================
waiting for locator('input[type="text"]')
============================================================
    at file:///fgc/prime-gaming.js:286:33 {
  name: 'TimeoutError'
}
vogler commented 1 year ago

See #55, the DLC stuff needs work. Haven't looked into it.