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