Skip to content
This repository has been archived by the owner on Dec 6, 2019. It is now read-only.

Screenshot not working for pages which load content asynchronously. #49

Open
vanBersie opened this issue Dec 14, 2016 · 0 comments
Open

Comments

@vanBersie
Copy link

I tried to take a screenshot of a page which loads some content asynchronously. A screenshot is taken but the asynchronously elements are not displayed. There was an error like "unsafe Javascript attempts from URL about:blank..." and "protocols, domains, ... must match". After downgrading the phantomjs module to 1.9.7-15 the error vanished but the screenshot remained the same. I also tried to adjust the casper settings within the runner.js and added under casper.create:

pageSettings: {
   webSecurityEnabled: false
 },
 sslProtocol: 'any'

but that also didn't change a thing. So how could I enable CORS or get a workaround to capture the page as it would usually be (with the async content)?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant