How to make mouse double click in JavaScript?

45 views
Skip to first unread message

Sivanagamahesh Gorijala

unread,
Jan 2, 2018, 7:53:02 AM1/2/18
to Selenium Users
 Hi,

I require a JavaScript code to influence mouse to double tap independent from anyone else. I will utilize it inside my Java code. This one is a selenium venture for testing-purposes however there isn't any approach to influence mouse to double tap in selenium so I need to utilize JavaScript to do that inside my java code. Do you have any thought? 

This is the old inquiry of me "How to double tap anyplace on the site page?" 

They said I should utilize JavaScript to influence mouse to double tap yet how?

Thanks
sivanagamahesh

David

unread,
Jan 2, 2018, 4:24:50 PM1/2/18
to Selenium Users
You should be able to do it w/ javascript calls, following the approach for faking/simulating a regular mouse click in javascript, just replace "click/onclick" with "dblclick/ondblclick": https://www.w3schools.com/jsref/event_ondblclick.asp

Reply all
Reply to author
Forward
0 new messages