Page 1 of 1

Homonyms in task bar

Posted: Tue May 03, 2016 10:38 am
by okawak
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

Re: Homonyms in task bar

Posted: Wed May 04, 2016 1:18 pm
by okawak
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