4

I'm looking for an automated screenshot tool which can take screenshot of multiple pages where we can define the url, viewport size and it will navigate to those pages, capture screenshot of the entire page and save it locally.

It should be cross browser compatible (Chrome, Firefox, Internet explorer). I've looked at PhantomJS however, since it's headless rendering, it doesn't exactly match with the real browser. Nimbus, Snagit, Awesome screenshot requires manual effort.

Since I have 1000's of page to capture, manual mode would be too time consuming. I've also looked at nightwatch JS which is based on webdriverIO and selenium however, it lacked option to capture full-page screenshot.

3

You can use the Selenium Webdriver itself to do it.

See this answer. Just do this procedure for each page you want to check.

2
  • I've tried Selenium-Webdriver however, it doesn't seems to be capturing the entire page screenshot at once. Dec 20 '16 at 12:38
  • 1
    Could you share that code that fails? Dec 23 '16 at 18:07
1

You can try out LambdaTest - a cross-browser testing tool. It offers automated Screenshot testing that helps you to perform browser compatibility testing by capturing full-page automated screenshots of your website across 25 browsers/OS and device combinations in a single test session. Also, you can download all your screenshots in your local system.

LambdaTest Automated Screenshot offers the following services:

  • Automated Cross-Browser Screenshot Testing On Windows Machines and MAC Machines.
  • Automated Cross-Browser Screenshot Testing On Android and iOS.
  • You can schedule your automated screenshots.
  • Take screenshots of locally hosted websites.
  • Automated API Screenshot.
  • Full-page screenshots captured each time
  • One-click bug logging on any screenshot

You can refer to this documentation to start your automated screenshot testing.

Alternatively, you can use WordPress and the Chrome plugin to capture full page screenshots.

Hope this helps!

0

It should be cross browser compatible (Chrome, Firefox, Internet explorer).

You can use the iMacros for Chrome, Firefox and IE addons. They all have a command called "Screenshot":

http://wiki.imacros.net/SCREENSHOT

You can use a 2-line macro for taking screenshots:

URL GOTO http://your-url.com
SCREENSHOT TYPE=PAGE FOLDER=* FILE=*
0

It's possible to take a screenshot using Selenium WebDriver. Try this java sample..

WebDriver driver = new FirefoxDriver();
driver.get("http://www.example.com/");
File srcFile = (File) (((TakesScreenshot) driver).getScreenshotAs(OutputType.FILE));)
FileUtils.copyFile(scrFile, new File("c:\\tmp\\picture.png"));
0

I've run my browser tests in VirtualBox which allows for recording the session. It might be overkill for what you need for screenshots but I found it very useful for for visual inspection and debugging.

0

In the past, I've used WinTask for this. see: http://www.wintask.com/index.php

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.