I know I can use:
casper.test.assertExists(#selector);
But I want to actually store if it exists in a boolean variable.
I.e. something like this:
var exists = SelectorExists(#selector);
I just found out:
if(!casper.exists('#selector')){
#selector doesn't exist
}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With