Open marcusellis05 opened 10 years ago
SpookyJS version: 0.2.4 CasperJS version: 1.1.0-beta3 PhantomJS version: 1.9.2
I suspect the problem is the regular expression. I don't think those can be serialized to JSON. This is definitely a limitation that needs to be mitigated or documented.
Can you pass a string pattern?
Tried that but I get:
CasperError: Couldn't find popup with url containing 'PDFServlet'
So, yeah, I guess the takeaway is addressing the regex issue or documenting the limitation there.
I'll try to figure out why my popup can't be found.
Thanks. And nice work on this, btw. Very helpful.
So, I'm trying to use SppokyJS to capture a screenshot of a popup window. When a user clicks a link, a popup window opens and displays a dynamically generated PDF. The relevant code looks something like:
But I end up getting this error from Casper:
It seems that an empty object literal {} is getting passed to Casper's "Popup" methods but I can't figure out why. Any ideas?