Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PG_CLAIMDLC locator 'a' resolved to 2 elements #142

Closed
Nackophilz opened this issue May 16, 2023 · 3 comments
Closed

PG_CLAIMDLC locator 'a' resolved to 2 elements #142

Nackophilz opened this issue May 16, 2023 · 3 comments
Labels
bug Something isn't working DLC DLC/add-on store: prime-gaming

Comments

@Nackophilz
Copy link

Nackophilz commented May 16, 2023

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 vogler added bug Something isn't working store: prime-gaming can't reproduce DLC DLC/add-on labels May 16, 2023
@vogler vogler changed the title [BUG] Notification PG_CLAIMDLC locator 'a' resolved to 2 elements May 16, 2023
@vogler vogler closed this as completed in 290fe28 May 16, 2023
@vogler
Copy link
Owner

vogler commented May 16, 2023

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

@Nackophilz
Copy link
Author

Nackophilz commented May 16, 2023

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
Copy link
Owner

vogler commented May 16, 2023

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working DLC DLC/add-on store: prime-gaming
Projects
None yet
Development

No branches or pull requests

2 participants