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

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

@vanBersie

Description

@vanBersie

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)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions