Page 1 of 1

Ranorex test not finding element that can be highlighted

Posted: Mon Mar 07, 2011 6:16 pm
by tallahassee101
Hi,

I have a ranorex item with a clear absolute rx path that is typically not found after a Ranorex test crashes or is stopped prematurely. However after the ranorex item is failed to be found and ranorex stops running, if I click on the repository item and do a "Highlight element" it is always found immediately. If I do not do a highlight element on the element, then rerunning the test will result in it failing to find the item again. Ranorex only seems to do this with a few ranorex items that are found in this same window pane in our application. I've checked the parent items and folders and all the paths are unique and can be quickly found using Highlight element.

Thank you for your help.

Re: Ranorex test not finding element that can be highlighted

Posted: Mon Mar 07, 2011 8:12 pm
by slavikf
I think i have similar issue.
It happens with application, which has two main windows. And Ranorex can't find element in one window, if another is active (any of the 2 windows can be active at given point of time).
As workaround, i make application to click on TitleBar first, to activate necessary window.

Not sure, if it applies to your app

Re: Ranorex test not finding element that can be highlighted

Posted: Mon Mar 07, 2011 11:56 pm
by tallahassee101
Ranorex 3.0 has this nice new feature called "Invoke Action" with the Action Name "Focus" that you can run on ranorex items. Running this on the parent class of the items I was having problems with seems to fix the issue. I hope this helps someone else.