webdriver.dart
webdriver.dart copied to clipboard
Allow taking screenshot of a particular WebElement, instead of the whole web page
There is some work around to achieve this: http://stackoverflow.com/questions/13832322/how-to-capture-the-screenshot-of-only-a-specific-element-using-selenium-webdrive/23087000#23087000.
It would be nice if there's a simple API to achieve it.
The solutions on that page require using a library in the WebDriver local end to manipulate the screenshot. I am not sure if such a library exists for Dart, and if one does, I would prefer to not add a dependency on it.
That said, the W3C spec includes element level screenshotting, and when we start seeing it in WebDriver remote ends, it should be added to here.