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

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -