I am not able to click OCR text without it timing out

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

click ocr text = currentelement_label

I get a Click OCR Text: Activity timeout exceeded error

Hi @Destiny_Malone

Your query is quite confusing. Could you be more specific.

I’ve provided more details in the post

@Destiny_Malone

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

Hope this helps

Cheers

Cheers

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.

I cannot figure out how to pass the ui element in the click activity

I’ve not figured out how to pass the current ui element text into the click activity.

@Destiny_Malone

in the click activity properties there is an input element property where you can pass the currentelement

cheers

That works, thank you

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.