gravity-ui / uikit

Home Page:https://gravity-ui.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Unable to click Switch in Playwright

ogonkov opened this issue · comments

I've tried to click on Switch in Playwright via selector

getByRole('switcher', {name: 'Some switcher name'})

But Playwright is unable to do it, because of a error

<span class="g-switch__slider"></span> intercepts pointer events

Looks like this element is laying over original input, and this cause error.

@ogonkov Yes, indeed we have complex layout for this control. For such case you can force playwright to click