Forum Discussion
Kanika
11 years agoContributor
I think the best way of error handling is :
if obj.Exists then
.......
.......
else
str = Log.Picture(page.Picture(), "User object not found")
end if
Please suggest if there is some other way apart from this.
anuprai29
11 years agoOccasional Contributor
Hi,
Try to handle event OnStopTest:
http://support.smartbear.com/viewarticle/56652/#ID0EZ
And within event handle function you can capture screen using method:
Sys.Desktop.Picture (ClientX, ClientY, Width, Height, Mouse)
and save screen capture on defined location.