Use Ctrl + F to search for a text and click on a button

Hi,

I’m currently working on a UI automation involving LinkedIn and I need to data scrape the details of people. For that, I need to use filter ‘People’. But the target keeps changing.

So I thought of searching for the text People and then clicking the button.

Can this be possible?

Screenshot 2023-12-14 212818
Screenshot 2023-12-14 212747

(Item to be selected circled in red)

Thanks in advance.

What do you mean the target keeps changing?

If you mean the position, that doesn’t matter. The selector doesn’t care about the position.

What selector are you using for the People button? I would assume it has an aaname like People or something like that, which means the selector IS looking for that text and clicking it.

I used Ui Explorer and it gave me this:

<webctrl aaname=' People ' parentid='search-reusables__filters-bar' tag='BUTTON' type='button' />

Which I would slightly change to…

<webctrl aaname='*People*' tag='BUTTON' type='button' />

The position on the screen doesn’t matter. This selector will find it no matter where it is.

Also, CTRL+F doesn’t work that way. Searching for text with the browser search feature doesn’t give UiPath any info about the object to click. There is a Click Text activity, but again you don’t need it in this case.

Hi @postwick ,

Got the expected result.

Thanks for taking your time to respond to my query.

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