HuddleEng / PhantomCSS

Visual/CSS regression testing with PhantomJS
MIT License
4.72k stars 259 forks source link

When page has asynchronously content following error occures. #176

Closed vanBersie closed 7 years ago

vanBersie commented 7 years ago

I want to take a screenshot of a page, navigation and other elements are displayed in the screenshot but the important content can't be loaded. An error occures: "Unsafe Javascript attempt to access frame with URL about:blank from frame..." and "Domains, protocols and ports must match".

Is there a workaround for that? I tried to pass settings like 'webSecurityEnabled: false' or 'ssl-protocol: "any"' within the testfile but failed. Is there any workaround for that?

jamescryer commented 7 years ago

I'm not aware of a solution to this, other than modify the page under test. But silencing errors like this it should be handled in PhantomJS itself, rather than PhantomCSS