It's not possible to capture images using the Leapwork Local Agent. This is due to the fact that Leapwork focuses itself (becomes an active window) while capturing the images in Local Agent, thereby making it impossible to capture the actual application, as seen in the screenshot below.
How to capture:
While designing and previewing test cases, instead of using the “Local Agent” environment use display “Local (Display 1)”. It will automatically minimize the Studio during image capturing, so while running a test it will not create infinite mirrors.
Secondly, users can utilize the Remote Agent to capture the images. This will yield better test results at run time due to the fact that the resolution of images will be the same on the agent at run time as they were during the design phase.
For any clarification, please contact our Priority Support.