javascript - CasperJS: Click Not Working? -


please find element's html trying click below:

<a href="javascript:" style="padding-top:3px;" onfocus="this.blur()" onclick="javascript:getavail('.........');return false;" class="flt-left nl-view" title=""><img src="....."></a> 

the methods have tried clicking on it:

  this.click('.flt-left.nl-view');    var x = require('casper').selectxpath;   click(x('(//a[@class="flt-left.nl-view"])[1]'));    casper.click("a[class='flt-left.nl-view']"); 

this how able execute click in console of chrome browser:

document.queryselectorall("tbody.yui-dt-data")[0].getelementsbytagname("td")   [6].getelementsbytagname("div")   [0].getelementsbytagname("a")[1].click(); 


Comments

Popular posts from this blog

PHP and MySQL WP -

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

go - golang pprof for c library code -