casper.visible('#percent_med_pickup');
returns true, while the following code with the same selector returns false:
casper.evaluate(function(){
return $('#percent_med_pickup').is(':visible');
});
Aren't both the same?
casper.visible('#percent_med_pickup');
returns true, while the following code with the same selector returns false:
casper.evaluate(function(){
return $('#percent_med_pickup').is(':visible');
});
Aren't both the same?
Yes, they are very different.
CasperJS (source):
jQuery (source):