I am new to javascript and casperjs.I am trying to trigger a button for automating a specific task. I can do it by clicklabel()
. I would like to know if there is direct way to call those functions. There is a sendAJAX
function in casperjs documentation. Does it work in this case?
<a class="selection" href="javascript:void(0)" onclick="function1(); function2();">New</a>