I guess I’m grasping at straws here …tried tons of different ways to do do it with different activities, and on some other post I found this as a way to do it…so I gave it a try…
But ok… let’s go back to simplest way, I guess, Find text positions and Click
So in GUI I need to find and click on a specific row, let’s say based on SO ID (first column).
Trying to find SO ID: 419015955
Let’s say I am using Find text position…and trying to Indicate element on screen I get this:
<wnd app='jp2launcher.exe' cls='SunAwtFrame' title='Manual Intervention' />
<java role='page tab list' />
<java name='Results' role='page tab' />
<java role='viewport' idx='5' />
Robot selects gray area below table also, see it as one…so I tried to be more specific so on a Visual tree, manually using highlighter, I gave robot only table (squared red in picture):
<wnd app='jp2launcher.exe' cls='SunAwtFrame' title='Manual Intervention' />
<java role='page tab list' />
<java name='Results' role='page tab' />
<java idx='2' role='table' />
Put Target text: “419015955” and crate variable as output. Then in Click activity I gave robot target element that variable. Robot always (does not matter the size of table in that moment), clicks in the middle of table, not on the text which needs to be found.
Then, I went to fix my selector
Yet again, went on an inspection with UI explorer and Indicate element, also on Visual tree I find and select all of SO ID’s and get this:
<wnd app='jp2launcher.exe' cls='SunAwtFrame' title='Manual Intervention' />
<java role='page tab list' />
<java name='Results' role='page tab' />
<java idx='2' role='table' />
<java role='label' tableCol='0' tableRow='5' />
and for each SO ID row value is different of course, so I tried with asterisk- tableRow=‘*’ />, but no luck, same result.
Tried to make it dynamic:
<java role='label' tableCol='0' tableRow='{{ROW}}' />
and gave variable ROW default value of “*” because I don’t know on which position is my text, but than Find text position fails.