Open darshan-dave opened 7 years ago
It depends how the lazy loading is implemented. Is it lazy loaded based on user's scroll position? Phantom/Casper will not scroll until you tell it to, so the content would never get loaded.
It sounds as though you need a before_capture
JS file in which you interact with the page a little before you attempt to take any screenshots.
Thank you for your inputs, Chris.
Let me check if this works, will get back to you.
Hey @ChrisBAshton,
I tried interacting with the page (scrolling) by making changes in snap.js. The solution that I tried is provided in the last comment from 'rajee1009' in https://github.com/BBC-News/wraith/issues/118, but to no avail.
Please advise.
Thank you.
@ChrisBAshton and @DaveBlooman,
Could you advise the way out of this? Your help would be highly appreciated.
Thank you.
The web pages which are under test have lazy loading implemented recently. Wraith is unable to capture the images and some other content in the screenshots. This used to work previously before the implementation of lazy loading.
Please advise.
Reporting a problem? Please describe the issue above, and complete the following checklist so that we can help you more quickly.
Issue checklist:
I have validated my config file against YAML Validator to make sure it is valid YAML.
[ ] I have run the
wraith info
command and pasted the output below:verbose: true
to my config) and pasted the output below: