Ranorex test not finding element that can be highlighted

Ask general questions here.
tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Ranorex test not finding element that can be highlighted

Post by tallahassee101 » Mon Mar 07, 2011 6:16 pm

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.

User avatar
slavikf
Posts: 104
Joined: Mon Sep 13, 2010 9:07 pm
Location: Toronto, Canada
Contact:

Re: Ranorex test not finding element that can be highlighted

Post by slavikf » Mon Mar 07, 2011 8:12 pm

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

tallahassee101
Posts: 169
Joined: Thu Jan 13, 2011 2:06 pm

Re: Ranorex test not finding element that can be highlighted

Post by tallahassee101 » Mon Mar 07, 2011 11:56 pm

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.