How can I capture an image from a Silverlight application in a web browser

I am using Robot Framework to automate a website. This website uses the Silverlight app to display videos.

My goal: To create a custom keyword in my Robot Framework that takes a web element, the web element is the place where the Silverlight player is on the page, and a screenshot of what is visible. I do not need to interact with the Silverlight application.

Work accomplished: I already created a custom keyword Capture Screenshot Of Element , which takes a web element and returns a screenshot of only that particular element. However, if the item contains a Silverlight application, all I get is an empty background color, not the image displayed in the Silverlight application.

Is there a way to specify a web element in a browser and display what is actually visible on the screen in that element?

+5
source share

Source: https://habr.com/ru/post/1241640/


All Articles