blob: b78bf3d771741a43270d7351d3101d628ed81011 [file] [log] [blame]
/**
* Collection of helpers for xos tests
*/
const clickElement = function (el){
var ev = document.createEvent("MouseEvent");
ev.initMouseEvent(
"click",
true /* bubble */, true /* cancelable */,
window, null,
0, 0, 0, 0, /* coordinates */
false, false, false, false, /* modifier keys */
0 /*left*/, null
);
el.dispatchEvent(ev);
};
console.log('---------------------- Test Helpers Loaded!! -----------------------');