How to Take Screenshots in a Silk Performer Browser-driven Project
Silk Performer 15.5, saw the introduction of the BrowserScreenshot function. With BrowserScreenshot it is now possible to take screenshots of the application under test. This is useful to monitor the application screen at specified intervals or when performing troubleshooting steps.
In this example, the application under test starts a download and a progress bar. We'll be monitoring the screen by taking a few screenshots while the download is in progress. If the 'Cancel Download' button is available, this means the download has not completed yet, as shown:
Our code will look like this:
The result will be a truelog file with screenshots showing the progress bar at different stages, as below:
Download the sample from here: BrowserGetScreen.zip