on 12 Apr 2023 09:10 AM
Steps to follow to perform the DoubleClick event on browser click path synthetic monitor
Go to the relevant page on Chrome browser
Right click on the element which you want to interact with on the page-> Inspect the element which will open the developer tools
Right click on the element on the Web developer tools - > Copy - > Copy JS path
Paste the JS path on the below element value and add this JavaScript code into the JavaScript Event of your Browser click path monitor
function triggerevent(element) {
var evt = document.createEvent("MouseEvent");
evt.initMouseEvent("dblclick",true, true);
element.dispatchEvent(evt);
}
var element = document.querySelector('button[id="testid"]'); //Replace with the element which you want to perform the mouseover action.
triggerevent(element);