mcp icon indicating copy to clipboard operation
mcp copied to clipboard

browser_click not working sometimes

Open ominus3 opened this issue 1 year ago • 5 comments

Some component libraries rely on the focusin event rather than click. While a real user interaction can trigger focusin, but browser_click will not.

ominus3 avatar May 08 '25 09:05 ominus3

Thanks for the report. Can you give an example of a component library you see this issue with? It’ll help for testing.

namuorg avatar May 08 '25 09:05 namuorg

Thanks for the report. Can you give an example of a c component library you see this issue with? It’ll help for testing.

Test whether the Select component properly displays the dropdown.

not working: $0.dispatchEvent(new Event('click', { bubbles: true }))

working: $0.dispatchEvent(new Event('mousedown', { bubbles: true }))

https://ant.design/components/select

Image

ominus3 avatar May 08 '25 09:05 ominus3

There's also an internal company repository that uses focusin instead. In this case, the full user click flow should be simulated. This has been tested with Playwright on the Ant Design Select component, and it works as expected.

ominus3 avatar May 08 '25 10:05 ominus3

click not working on AntD dropdown options or checkboxes

SajidTechinvo avatar Jun 14 '26 17:06 SajidTechinvo

Browser MCP has been completely rewritten, so most open issues should now be resolved. I'm closing this issue as part of a cleanup. If the problem persists on the latest version, you're welcome to file a new issue.

namuorg avatar Oct 27 '26 09:10 namuorg