[15.3 Element] takesElementScreenshot question

In section 15.3 [1] it talks about taking an element Screenshot.

Currently (in the C# bindings ) the RemoteWebElement class does not implement the ITakesScreenshot interface and hence we cannot take an element screenshot. This means we have a choice to make:

1. Should we add the interface to the RemoteWebElement and then all other C# browser bindings will benefit from it (assuming that the respective drivers implement it)?
2. Should we implement this method in the our own class (which derives directly from RemoteWebElement)? This would not affect the bindings for the other browsers but  has some the disadvantage of forcing people who want to use this functionality to write specific code for Edge. Generally tests that are executed remote, use the RemoteWebElement class.

What do you think?

[1] https://w3c.github.io/webdriver/webdriver-spec.html#element 

Received on Thursday, 25 June 2015 17:33:14 UTC