webdriver.dart icon indicating copy to clipboard operation
webdriver.dart copied to clipboard

Allow taking screenshot of a particular WebElement, instead of the whole web page

Open wangyizhuo opened this issue 9 years ago • 1 comments

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.

wangyizhuo avatar Jan 20 '16 01:01 wangyizhuo

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.

DrMarcII avatar Jan 20 '16 18:01 DrMarcII