Unable to capture and attach screenshots to a case
SummaryUnable to capture and attach screenshots to a case using the Pega out-of-the-box Screenshot Capture functionality.
Error MessagesCannot capture screen. Target window position not found
Steps to Reproduce
- Configure the SECTION/HTML rule AttachmentHTML or ActionAttachaScreenshot
- Select Attach Screenshot from the dropdown (all the open windows are available for the screenshot).
- Select the PBS application from the dropdown list and click the Attach Screenshot button.
Root CauseAn issue in the custom application code
When a desktop window is shared between all open documents for an application (for example, Microsoft Excel), the screen capture tool does not select the exact document from all the open documents. The PBS application works similarly.
Hence, this is not an issue with the screen capture tool but with the PBS application where window management is different.
ResolutionPerform the following local-change:
Activate the respective document and proceed with the screenshot.
Published March 26, 2018 - Updated October 8, 2020