How to do click to the first result of a search?

Hello,

I am learning Automation with UI Path, my question is how to do click to the first result of a search?

For Example:

I have typed “Compras” on google and the first result is “Amazon”, it is possible to be different some times, so I want to click to the first result.

Anyone can help me?

Thank you!

Hello @alber_grs

Use uiexplorer and inspect on the first url. There in the attribute list you will able to find some attribute like rowNum or idx which gives the position of the item. Include that in the selector and remove the attribute which changes with the string which you are searching.

Use that selector in the click activity
Thanks