Skip to content Skip to sidebar Skip to footer

Casperjs Click Not Firing Click Event

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 actual b

Solution 1:

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.

Post a Comment for "Casperjs Click Not Firing Click Event"