Page 1 of 1

Unable to track the button

Posted: Thu Nov 12, 2015 2:19 pm
by ejji09
Hi,

Am trying to click a icon button, But where ever i try to track the button ranorex tracks all the buttons a time.

I was unable to track the single button. How to track the single button.

Please find the attchment of the screenshot of the buttons
In those button i want to click on the mic symbol but the cursor always click on the save(with the Green right mark) symbol.

Thank you.

Re: Unable to track the button

Posted: Thu Nov 12, 2015 2:35 pm
by odklizec
Hi,

Please post the Ranorex Snapshot (not screenshot) of the button list in question. It's hard to tell what's wrong without more details about the problematic element.

The most probable reason is that the button list in question is not automation friendly and Ranorex simply cannot recognize individual buttons? If that's the case, your only hope may be using image recognition. But once again, it's hard to tell something definitive without seeing the snapshot.

Re: Unable to track the button

Posted: Fri Nov 13, 2015 9:59 am
by ejji09
Sorry for the late reply..

Please find the link to download my Ranorex snapshot.

https://app.box.com/s/dlkjhj5uvabs6qk01s1vkp6ui8ya2mih

Re: Unable to track the button

Posted: Fri Nov 13, 2015 10:32 am
by odklizec
Hi,

The snapshot seems to be corrupted and cannot be open in spy. Please save it again, but this time, save it without complete ancestor tree, as described here:
http://www.ranorex.com/forum/browsing-v ... ree#p33974
This should reduce the size of snapshot significantly.

Re: Unable to track the button

Posted: Fri Nov 13, 2015 10:53 am
by ejji09
Hi,

please find the link of sanpshot with out parent elements
https://app.box.com/s/alaksr3oxyh89by62i6e84lhy3ocyp92

snapshot with complete elements
https://app.box.com/s/agqp4ozdmyrs01e1n1tuxnib5c72ksyq

Thank you.

Re: Unable to track the button

Posted: Fri Nov 13, 2015 11:07 am
by odklizec
Now it's clear. The button list is in fact Java Canvas, which is basically a 2D picture. In other words, there is no way for Ranorex to recognize individual canvas elements. Your only hope is to use image recognition.

Re: Unable to track the button

Posted: Fri Nov 13, 2015 11:11 am
by ejji09
Hi,

Can you explain me that how to do image recognation in ranorex?

Re: Unable to track the button

Posted: Fri Nov 13, 2015 11:21 am
by odklizec
A video is worth thousands words :) Please check this Ranorex screencast...
http://www.ranorex.com/support/screencasts.html#c2529