Forum Discussion
JeanL
15 years agoContributor
Ok, I got this working with VbScript quite easily but pretty soon I bumped into new problem. When the object I want to highlight is not fully on the screen (in example huge textarea) I get this error again:
An exception occurred in the "XXX" unit at line 123:
The specified coordinates are out of bounds.
Is there a way to test wheter the coordinates are out bounds or not before changing the color of the pixel with Picture.Pixels method (http://www.automatedqa.com/support/viewarticle/11131/)?
I noticed that logs created by TC and TE has these visImage.png files. These visImages contains the screenshot with highlighted object. So that's exactly what I want!! Those pictures seems to be taken when event is posted to the log (in this case "The window was clicked with the left mouse button" event.) The log files "Has Picture" column doesn't show that this event has picture, but still it does. So what are these visImages? When are they taken? Can I control when these visImages are taken? Can I change to quality of the visImage (since the file size is quite big)? And finally, is this some new feature of TestComplete and TestExecute? Other computer I'm using has older version of TestExecute 8 and the logs created by it doesn't contain these visImages.
An exception occurred in the "XXX" unit at line 123:
The specified coordinates are out of bounds.
Is there a way to test wheter the coordinates are out bounds or not before changing the color of the pixel with Picture.Pixels method (http://www.automatedqa.com/support/viewarticle/11131/)?
I noticed that logs created by TC and TE has these visImage.png files. These visImages contains the screenshot with highlighted object. So that's exactly what I want!! Those pictures seems to be taken when event is posted to the log (in this case "The window was clicked with the left mouse button" event.) The log files "Has Picture" column doesn't show that this event has picture, but still it does. So what are these visImages? When are they taken? Can I control when these visImages are taken? Can I change to quality of the visImage (since the file size is quite big)? And finally, is this some new feature of TestComplete and TestExecute? Other computer I'm using has older version of TestExecute 8 and the logs created by it doesn't contain these visImages.