Disclosure Statement: This site contains affiliate links, which means that I may receive a commission if you make a purchase using these links. As an eBay Partner, I earn from qualifying purchases.

DevTools dispatchMouseEvent

Post Reply
wbdeveloper
Posts: 18
Joined: Sun Jul 18, 2021 9:56 pm

DevTools dispatchMouseEvent

Post by wbdeveloper »

Hello Salvador, how are you?

Looking at this DevTools method
https://chromedevtools.github.io/devtools-protocol/tot/Input/#method-dispatchMouseEvent

It should trigger a click in the Browser but in all my tests and adjustments it didn't work, I never click on any
button on the screen can you tell me if I need to do something else? any suggestion?

Thanks.
User avatar
salvadordf
Posts: 4057
Joined: Thu Feb 02, 2017 12:24 pm
Location: Spain
Contact:

Re: DevTools dispatchMouseEvent

Post by salvadordf »

Hi,

Try using a browser in off-screen rendering (OSR) mode. Then you can simulate mouse and keyboard events.

See the SimpleOSRBrowser demo.
wbdeveloper
Posts: 18
Joined: Sun Jul 18, 2021 9:56 pm

Re: DevTools dispatchMouseEvent

Post by wbdeveloper »

thank you salvadorf
I'll try to do more research on this and find a solution alternative
have a nice day :D
Post Reply