Click on every text occurrence that matches user inputted variable

Hi all,

I am currently working on a project that aims to click on each text in a web page that matches the month and year that the user inputs (it is saved to a variable named dateRange).

So for example, if the user inputs ‘Mar 2023’, UiPath will click on every date from that particular month and year.

I tried to achieve this using Find Children, iterate the list using For Each and then match it based on the inner text retrieved from Get Attribute but it does not seem to produce any output… will attach my work flow in the replies.

Would greatly appreciate any help.

Cheers

Hi @Chippi_Chappa

Give a try using the For Each Ui Element, inside the for each check if the current element contains the text you are looking for, if so, then click on the item

Regards

Dear @fernando_zuluaga

Thanks for your reply, greatly appreciate the help. I tried that approach but it gives an error and I’m not sure why.

image
For Each UI Element: Error HRESULT E_FAIL has been returned from a call to a COM component.

Could you please advise on how to go about troubleshooting it?

Cheers