CasperJS click not firing click event

后端 未结 1 1166
别那么骄傲
别那么骄傲 2021-01-24 08:00

I am having trouble with CasperJS. I load the page for our site, then try to click on the signup button. It\'s supposed to open a modal, but nothing happens. It works in actu

相关标签:
1条回答
  • 2021-01-24 08:14

    In my case the problem was this line

    casper.options.remoteScripts.push 'http://code.jquery.com/jquery-2.1.4.min.js'
    

    The casperjs Jquery injection overwrited the addEventListeners so they were not working. Remove that line and test if it works. Modify your code to use plain javascript instead of Jquery lib.

    0 讨论(0)
提交回复
热议问题