nutch-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Lewis John McGibbney (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (NUTCH-2021) Use protocol-selenium to Capture Screenshots of the Page as it is Fetched
Date Fri, 22 May 2015 00:08:19 GMT

     [ https://issues.apache.org/jira/browse/NUTCH-2021?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Lewis John McGibbney updated NUTCH-2021:
----------------------------------------
    Summary: Use protocol-selenium to Capture Screenshots of the Page as it is Fetched  (was:
Use protocl-selenium to Capture Screenshots of the Page as it is Fetched)

> Use protocol-selenium to Capture Screenshots of the Page as it is Fetched
> -------------------------------------------------------------------------
>
>                 Key: NUTCH-2021
>                 URL: https://issues.apache.org/jira/browse/NUTCH-2021
>             Project: Nutch
>          Issue Type: Bug
>          Components: plugin, protocol
>    Affects Versions: 1.10
>            Reporter: Lewis John McGibbney
>             Fix For: 1.11
>
>
> This should be a piece of cake. It can be done as follows
> {code}
> WebDriver driver = new FirefoxDriver();
> driver.get("http://www.google.com/");
> File scrFile = ((TakesScreenshot)driver).getScreenshotAs(OutputType.FILE);
> // Now you can do whatever you need to do with it, for example copy somewhere
> FileUtils.copyFile(scrFile, new File("/usr/local/pics/screenshot.png"));
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message