How to trigger signature-pad's onEnd event using Protractor/Javascript -


i'm trying write automation test protractor signs signature pad, trigger onend event fire. currently, automated signing looks this:

var canvas = document.getelementsbytagname('canvas')[0]; var ctx = canvas.getcontext("2d"); ctx.moveto(0,0); ctx.lineto(200,100); ctx.stroke(); 

if use mouse or finger on signature-pad, fires onend event. however, not. there way can manually event fire?


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -