Homonyms in task bar

Technology specific object identification, supported applications, web technologies, and 3rd party controls.
okawak
Posts: 4
Joined: Tue May 03, 2016 9:26 am

Homonyms in task bar

Post by okawak » Tue May 03, 2016 10:38 am

Hello !

I'm using Ranorex 5.4 and I want to click on a specific icon on my task bar.
Unfortunately, I got issues with Ranorex selecting neighbour icons after rebooting my computer.

One issue is that an other icon text starts the same as the one I want to test.
An other issue is that the text associated with the icon I want to test changes depending on the state of the software ; so using the text of the icon is not a good way to identify it.
Yesterday I used CommandId and it seemed to work, but today the value of CommandId associated with the icon changed so it is not reliable either.

The snapshot done by Ranorex is correct, but it doesn' t seem to recognize visually the icon.

Is there a way to use regular expression with the text of the icon ?
Any Idea or any related thread that can help me?

Thanks in advance,
Olivier

okawak
Posts: 4
Joined: Tue May 03, 2016 9:26 am

Re: Homonyms in task bar

Post by okawak » Wed May 04, 2016 1:18 pm

In fact I found a solution this morning : using regular expression, to distinguish icons
/button[@text~'^...
but still I warn about the use of CommandId