I'm using TestComplete. I need to capture a screenshot and place it in a particular folder. How to do this using VBScript?
To capture a desktop screenshot, use the Sys.Desktop.Picture
method. To save the resulting image to a file, use its SaveToFile
method:
Sys.Desktop.Picture.SaveToFile "E:\screenshot.png"
Alternatively, you can turn on the Test Visualizer to automatically capture screenshots for your test actions.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With