Question
John Deere
IN
Last activity: 29 Feb 2024 8:51 EST
Screenshot not getting captured
We are trying to capture screenshot of the page on click on Next button. We have tried AttachScreenshot OOTB but it captures the next page screenshot and that too only wrapper section content is visible but not the embedded sections.
We had a thought that since next button will take the control to the next screen and then activity is getting executed. To solve this we tried using a custom function (defined in userworkform) which will call this OOTB activity (run script action on Next button click). But still its capturing the next page screenshot.
We also tried using Java java.awt.Robot but Pega is blocking the javascript which will get executed while java code runs.
Can someone please assist? I read somewhere that phantom js can be used. But we dont know how to use this in Pega.