Clicking the checkbox did not change its state #9

Open
opened 2024-12-31 21:24:15 +01:00 by tdpeuter · 5 comments
Owner

Output:

Processing https://www.qobuz.com/us-en/album/samai-azmari/s7lv8da2qivva
page.check: Clicking the checkbox did not change its state
Call log:
  - waiting for locator('input[id="hide-from-ticker"]')
  -   locator resolved to <input type="checkbox" id="hide-from-ticker"/>
  - attempting click action
  -   waiting for element to be visible, enabled and stable
  -   element is visible, enabled and stable
  -   scrolling into view if needed
  -   done scrolling
  -   <div class="option svelte-16p7iz5">…</div> intercepts pointer events
  - retrying click action, attempt #1
  -   waiting for element to be visible, enabled and stable
  -   element is visible, enabled and stable
  -   scrolling into view if needed
  -   done scrolling
  -   performing click action
  -   click action done
  -   waiting for scheduled navigations to finish
  -   navigations have finished

    at /home/tdpeuter/projects/lucida-queue/src/lucida.ts:19:16
    at fulfilled (/home/tdpeuter/projects/lucida-queue/src/lucida.ts:5:58) {
  name: 'Error'
}
Output: ``` Processing https://www.qobuz.com/us-en/album/samai-azmari/s7lv8da2qivva page.check: Clicking the checkbox did not change its state Call log: - waiting for locator('input[id="hide-from-ticker"]') - locator resolved to <input type="checkbox" id="hide-from-ticker"/> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - <div class="option svelte-16p7iz5">…</div> intercepts pointer events - retrying click action, attempt #1 - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - performing click action - click action done - waiting for scheduled navigations to finish - navigations have finished at /home/tdpeuter/projects/lucida-queue/src/lucida.ts:19:16 at fulfilled (/home/tdpeuter/projects/lucida-queue/src/lucida.ts:5:58) { name: 'Error' } ```
tdpeuter added the
bug
label 2024-12-31 21:24:15 +01:00
Author
Owner
Processing https://www.qobuz.com/us-en/album/lukas-graham-lukas-graham/0093624920496
C:\Users\tibod\IdeaProjects\lucida-queue\src\lucida.ts:5
    const page: Page = await context.newPage();
                                                         ^
page.check: Clicking the checkbox did not change its state
Call log:
  - waiting for locator('input[id="hide-from-ticker"]')
  -   locator resolved to <input type="checkbox" id="hide-from-ticker"/>
  - attempting click action
  -   waiting for element to be visible, enabled and stable
  -   element is visible, enabled and stable
  -   scrolling into view if needed
  -   done scrolling
  -   performing click action
  -   click action done
  -   waiting for scheduled navigations to finish
  -   navigations have finished

    at C:\Users\tibod\IdeaProjects\lucida-queue\src\lucida.ts:20:16
    at fulfilled (C:\Users\tibod\IdeaProjects\lucida-queue\src\lucida.ts:5:58) {
  name: 'Error'
}
``` Processing https://www.qobuz.com/us-en/album/lukas-graham-lukas-graham/0093624920496 C:\Users\tibod\IdeaProjects\lucida-queue\src\lucida.ts:5 const page: Page = await context.newPage(); ^ page.check: Clicking the checkbox did not change its state Call log: - waiting for locator('input[id="hide-from-ticker"]') - locator resolved to <input type="checkbox" id="hide-from-ticker"/> - attempting click action - waiting for element to be visible, enabled and stable - element is visible, enabled and stable - scrolling into view if needed - done scrolling - performing click action - click action done - waiting for scheduled navigations to finish - navigations have finished at C:\Users\tibod\IdeaProjects\lucida-queue\src\lucida.ts:20:16 at fulfilled (C:\Users\tibod\IdeaProjects\lucida-queue\src\lucida.ts:5:58) { name: 'Error' } ```
Author
Owner

The line in question

await page.check('input[id="hide-from-ticker"]');

As per docs:

NOTE Use locator-based locator.check([options]) instead. Read more about locators.

I will rewrite all selector-based operations to this way of working.

The line in question https://git.depeuter.dev/tdpeuter/lucida-queue/src/commit/03c01bdfa08c8b70b21c69e42964e34a1362f012/src/lucida.ts#L19 As per docs: > NOTE Use locator-based [`locator.check([options])`](https://playwright.dev/docs/api/class-locator#locator-check) instead. Read more about [locators](https://playwright.dev/docs/locators). I will rewrite all selector-based operations to this way of working.
tdpeuter self-assigned this 2025-01-01 16:56:31 +01:00
Author
Owner

Trying to reproduce, but did not find any trigger so far

Trying to reproduce, but did not find any trigger so far
Author
Owner

Closing for now

Closing for now
Author
Owner
Problem still occurs. Might be fixed by https://github.com/microsoft/playwright/issues/27016#issuecomment-1716485561
This repository is archived. You cannot comment on issues.
No milestone
No project
No assignees
1 participant
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: tdpeuter/lucida-queue#9
No description provided.