javascript - Simulate timeout in Phantom JS -


we taking screenshots using phantomjs, works quite us. face challenge of websites take screenshots of have animations when page loads. can of course use simple timeout of, let's say, 5 seconds, surely don't want wait actual 5 seconds idling each screenshot.

is there way "simulate" screenshot, i.e. tell phantom internally fast forward 5 seconds while actually, outside, no time passes?

no, there no way fast forward time 5 seconds.

as workaround, might want take screenshot every second , see if changes timeout @ 10 seconds example. comparison of images can done in various ways actual byte byte comparison or invocation of image library can compare image data can set match when images 99% equal.


Comments

Popular posts from this blog

'hasOwnProperty' in javascript -

c# - Update a combobox from a presenter (MVP) -

android - Unable to generate FCM token from dynamically instantiated Firebase -