Skip to main content

Posts

Showing posts with the label casperjs

Verify conditions synchronously with CasperJS / PhantomJS

Synchronously waiting for a condition to be met in CasperJS (during AJAX calls and dynamic content loading on the page), implementation of helper methods: And now we can dynamically verify that our startup dialog has some text (in case the text is loaded by an AJAX call some time after the dialog was called):