appium/appium — pull request #829 by tanob (2013-06-29 19:38:22+00:00)
Title: Fixed WebDriver's capability name for taking screenshot

The correct name for the capability that takes screenshot is "takesScreenshot", not in the plural as it was in the code.

Fixed for both Android and Firefox OS drivers.

Here's an example of how to take screenshots using the WebDriver's java API:

```java
WebDriver augmentedDriver = new Augmenter().augment(driver);
File screenshot = ((TakesScreenshot) augmentedDriver).getScreenshotAs(OutputType.FILE);

File destFile = new File("foo.png");
FileUtils.copyFile(screenshot, destFile);
```

Make sure your driver's class has an empty constructor because the augmenter will need it.