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

'prime-gaming failed: locator.innerText: <...> resolved to 2 elements:' #396

Open
shapeshiftyr opened this issue Oct 30, 2024 · 0 comments

Comments

@shapeshiftyr
Copy link

shapeshiftyr commented Oct 30, 2024

Seems Amazon made some changes again like in #136

Running via Docker in UnRAID

Version: https://github.com/vogler/free-games-claimer/tree/c8cf7362fa2ff92386eee4dc847784d95d7f5195
Build: Sat, 31 Aug 2024 23:23:37 +0000
Xvfb display server created screen with resolution 1280x1280
VNC is running on port 5900 (no password!)
noVNC (VNC via browser) is running on http://localhost:608
'prime-gaming failed: locator.innerText: Error: strict mode violation: locator('div[data-a-target="offer-list-IN_GAME_LOOT"]').locator('[data-a-target="item-card"]:has(p:text-is("Claim"))').first().locator('.item-card-details__body p') resolved to 2 elements:'
    at /fgc/epic-games.js:130:16 {
  name: 'TimeoutError'
}
--- Exception:
locator.innerText: Error: strict mode violation: locator('div[data-a-target="offer-list-IN_GAME_LOOT"]').locator('[data-a-target="item-card"]:has(p:text-is("Claim"))').first().locator('.item-card-details__body p') resolved to 2 elements:
    1) <p class="tw-c-text-base tw-ellipsis tw-font-size-7 tw-md-font-size-6">…</p> aka getByLabel('Starlight Grimalkin', { exact: true })
    2) <p>Starlight Grimalkin</p> aka getByLabel('Starlight Grimalkin', { exact: true })

Call log:
  - waiting for locator('div[data-a-target="offer-list-IN_GAME_LOOT"]').locator('[data-a-target="item-card"]:has(p:text-is("Claim"))').first().locator('.item-card-details__body p')

    at /fgc/prime-gaming.js:369:62
    at /fgc/prime-gaming.js:368:42
Not signed in anymore. Please login in the browser or here in the terminal.
/fgc/node_modules/playwright-core/lib/server/frames.js:297
    for (const child of frame.childFrames()) this._removeFramesRecursively(child);
                              ^

TypeError: Cannot read properties of undefined (reading 'childFrames')
    at FrameManager.removeChildFramesRecursively (/fgc/node_modules/playwright-core/lib/server/frames.js:297:31)
    at FrameManager.frameCommittedNewDocumentNavigation (/fgc/node_modules/playwright-core/lib/server/frames.js:147:10)
    at FFPage._onNavigationCommitted (/fgc/node_modules/playwright-core/lib/server/firefox/ffPage.js:165:30)
    at FFSession.emit (node:events:519:28)
    at /fgc/node_modules/playwright-core/lib/server/firefox/ffConnection.js:154:41

Node.js v20.17.0
--- Exception:
locator.innerText: Error: strict mode violation: locator('div[data-a-target="offer-list-IN_GAME_LOOT"]').locator('[data-a-target="item-card"]:has(p:text-is("Claim"))').first().locator('.item-card-details__body p') resolved to 2 elements:
    1) <p class="tw-c-text-base tw-ellipsis tw-font-size-7 tw-md-font-size-6">…</p> aka getByLabel('Starlight Grimalkin', { exact: true })
    2) <p>Starlight Grimalkin</p> aka getByLabel('Starlight Grimalkin', { exact: true })

Call log:
  - waiting for locator('div[data-a-target="offer-list-IN_GAME_LOOT"]').locator('[data-a-target="item-card"]:has(p:text-is("Claim"))').first().locator('.item-card-details__body p')

    at /fgc/prime-gaming.js:369:62
    at /fgc/prime-gaming.js:368:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant