I am trying to take a screenshot of an element by calling the following (example) code:
var element = this.driver.FindElementByName("Example");
var sc = element.TakeScreenshot();
Now, when I was comparing the screenshot with the reference image (using OpenCvSharp) I kept getting very big errors. So I decided to take a look at the images, low and behold, the screenshot was always taken on the primary monitor, the app (Winforms) was running on the secondary monitor. All the actions performed on the element work normally, clicking it, getting it's attributes, … But for some reason, taking a screenshot does not work. Is there something I am missing, is this an Appium issue? Any help would be appreciated.