I have browser activity and I extract the datatable on the screen.
I use for each ui element and I want to click the column label to scrape another screen for datatable
So far I can use for each ui element to get the product descriptions and I want to be able to click that product by passing in the string
EDIT:
I use browser activity to get to this page.
I search with a string and use mouse scroll to extract the product table at the bottom of the screen
I extract the product table and use for each ui element to only get the product column (package, charge, charge)
That is saved as a string within this activity that I can see under CurrentElement_Label
In the for loop of each CurrentElement – I want to click the string from CurrentElement_Label (“package”, “Charge”, “Charge”)
For each ui element activity – just passing in the current browser I’m already using
for each currentelement in ui elements collection
Why are you using multiple values and also why are you using ocr text again?
As you are combining 3 columns ocr text cannot click as it expects the text to be exactly same with same spacing etc…and as you are combining columns it might not be same …so it would fail
What you can do is get the row number you wnat to click and use that row number in the idx field of the selector and then let it click on it
Alternately as ypu are already inside for each ui element you can directly pass currentelement to click as input element and let it click on the current element or row you need
You shouldn’t be using Click OCR Text for this. OCR is for image-based automation. You have selectors and a regular page. In your For Each UI Element you should be indicating the ui elements you want to click. Then you pass currentelement to the input element property of the Click activity.