2

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.

  • I've tried Selenium-Webdriver however, it doesn't seems to be capturing the entire page screenshot at once. – Rahul Dagli Dec 20 '16 at 12:38
  • 1
    Could you share that code that fails? – João Farias Dec 23 '16 at 18:07
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

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.