Unable to track the button

Ask general questions here.
ejji09
Posts: 54
Joined: Thu Sep 10, 2015 2:48 pm

Unable to track the button

Post by ejji09 » Thu Nov 12, 2015 2:19 pm

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.
You do not have the required permissions to view the files attached to this post.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Unable to track the button

Post by odklizec » Thu Nov 12, 2015 2:35 pm

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ejji09
Posts: 54
Joined: Thu Sep 10, 2015 2:48 pm

Re: Unable to track the button

Post by ejji09 » Fri Nov 13, 2015 9:59 am

Sorry for the late reply..

Please find the link to download my Ranorex snapshot.

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Unable to track the button

Post by odklizec » Fri Nov 13, 2015 10:32 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ejji09
Posts: 54
Joined: Thu Sep 10, 2015 2:48 pm

Re: Unable to track the button

Post by ejji09 » Fri Nov 13, 2015 10:53 am

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Unable to track the button

Post by odklizec » Fri Nov 13, 2015 11:07 am

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.
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration

ejji09
Posts: 54
Joined: Thu Sep 10, 2015 2:48 pm

Re: Unable to track the button

Post by ejji09 » Fri Nov 13, 2015 11:11 am

Hi,

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

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 7470
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Unable to track the button

Post by odklizec » Fri Nov 13, 2015 11:21 am

A video is worth thousands words :) Please check this Ranorex screencast...
http://www.ranorex.com/support/screencasts.html#c2529
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration