I have a page where I need to search for some text and grab the uielement. When I use the uiexplorer and click on the text, I get this:
<html title='PD4 - Indirect Purchasing' /> <webctrl id='normalPriorityGrid' tag='TABLE' /> <webctrl idx='1' isleaf='1' tableCol='9' tablerow=’5’ tag='TD' />
Since the text I am searching for can be anywhere in the table, I tried the “Find OCR Text” activity. I used
<html title='PD4 - Indirect Purchasing' /> <webctrl id='normalPriorityGrid' tag='TABLE' />
for the selector attribute. When I run the robot, two strange things happen. The first is that it won’t find the text unless it is visible on the screen (if you have to scroll down for the text, it can’t find it). The second thing is that it returns the selector above for the output UIElement. This seems useless, so I must be missing something. I get similar results when I try “Find Text Position.” I want the tablerow of the element because I actually need to select an icon in that row.
What am I missing? How can I get the element returned by UIExplorer?