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
Post a Comment