Page 1 of 1

Spy tool does not capture right image

Posted: Wed Sep 30, 2009 10:07 am
by hoanglz
hi Ranorex,

I'm using Ranorex trial. 2.1.4.6779
Please refer to my attachment.
My application has a DataGridView inside. While I use Ranorex Spy to get the picture of an item in applicatin, it can capture the main text only.
Back to main screen, Ranorex Spy can not capture all icon on the left and extra text on the right of every item DataGridView control.

is it a bug or a restriction?
Sorry I'm a noob in automation test domain.

Please help.
Thank you.

Re: Spy tool does not capture right image

Posted: Thu Oct 01, 2009 9:16 am
by Support Team
Hi hoanglz,
the image caption in Ranorex Spy try to get the image without EnsureVisible. So if the spied form is in background it`s possible that you get no(a wrong) image. But thats no limitation for the oject recognition!
If you want to get an element image at all you can use the Imaging.CaptureImage() method in code which use EnsureVisible by default

Regards,
Christian
Ranorex Support Team

Re: Spy tool does not capture right image

Posted: Thu Oct 01, 2009 10:19 am
by hoanglz
Ya, the Spy and object recognize of Ranorex is quiet good.
Thank you for you suggest and the keyword.
I will confirm and feedback later.
Thank you.