Adding Scrolling Screenshots to the Web Test Class

In an earlier post I demonstrated how to capture scrolling web screenshots. It's very slick, though that method uses an external utility and doesn't capture the actual state of the web page during a test. The first question I got on it was "How do I capture the page during a test?"


It is possible to create a script to capture a scrolling screenshot of a web page during a test. I've extended the simple web test class to include this functionality in a new "scrollShot()" method. A snippet of the new code is below.


ScrollShot() works and it's very cool, but the code needs a little more testing before release. I'll post the new version of webTest with the scrollShot() as soon as I'm sure it won't melt down your copy of TestComplete 4.


Close

By submitting this form, you agree to our
Terms of Use and Privacy Policy

Thanks for Subscribing

Keep an eye on your inbox for more great content.

Continue Reading

Add a little SmartBear to your life

Stay on top of your Software game with the latest developer tips, best practices and news, delivered straight to your inbox