Spy tool does not capture right image

Ranorex Spy, Recorder, and Studio.
hoanglz
Posts: 11
Joined: Wed Sep 30, 2009 7:17 am

Spy tool does not capture right image

Post by hoanglz » Wed Sep 30, 2009 10:07 am

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.
Attachments
NewRepository.rxrep
(93.82 KiB) Downloaded 223 times
RanorexSpy.JPG
RanorexSpy.JPG (155.17 KiB) Viewed 1119 times
OriginApplication.JPG
OriginApplication.JPG (49.56 KiB) Viewed 1119 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Spy tool does not capture right image

Post by Support Team » Thu Oct 01, 2009 9:16 am

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
.
Image

hoanglz
Posts: 11
Joined: Wed Sep 30, 2009 7:17 am

Re: Spy tool does not capture right image

Post by hoanglz » Thu Oct 01, 2009 10:19 am

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.