Click/Click Text row(0).ToString

Is there any way to click a row(0).ToString variable in a browser?
The current automation searches for names in a search bar using row(0).ToString but even then similar names ends up in the search result.
That is why I am wondering if there is a possibility to click the specific name that was just used with row(0).ToString?

Adding more info for clarification

Search

As you can see in the picture, the searched name is “Rodrigo”, however more than 1 player appears in the search.
Is there a way to find the player in the search result area using the row(0).ToString used in the search bar at the top?
Any solution/start to it would be a great help!

Hi @Robert_Wennberg

You can try with dynamic selectors.

  1. Assign row(0).Tostring to a variables.

  2. In click activity selectors check for aaname where you will find name, there just pass that name using variable. it will click dynamically as per your requirement.

@gulab

Thank you for your quick response!
I saw other posts about kind of the same issue but everyone (including me) had issues with the selectors and not knowing where to put the variable.

From the information I gathered it should be written like this?

@Robert_Wennberg

Looks good just remove webctrl ID and try it should work.

@gulab

Removed the ID and tried with what I did previously but it does not click on anything

Ignore the part where it says “Rodrigo”, that is actually changed to the playerNameVar

@gulab

I am only getting a error saying:

Click ‘A 131505’: Cannot find the UI element corresponding to this selector: html app=‘chrome.exe’ title=‘Search result | Transfermarkt’ /><webctrl parentid=‘yw0’ tag=‘A’ aaname=‘&quot: + playerNameVar + &quot:’ /

@Robert_Wennberg

Do not open the selectors just copy paste the below selectors it will work.(donot open before or after pasting)

image

@gulab

Thank you for your quick response and patience to stick with me.

I pasted the section you pasted in your post into the selector in the properties panel, but now I am just seeing this instead:

Sorry full selector is not displaying here, type as below in notepad and from there you copy and paste to selectors.

image

@Robert_Wennberg

Sorry full selector is not displaying here, type as below in notepad and from there you copy and paste to selectors.

image

@gulab

Thank you!
I will copy and paste that and see if it works

@gulab

I tried copy and pasting it and I only get a message saying “String constants must end with a double quote.”
Do I have to change anything in the selectors first before copy pasting it into the properties selector? I am confused.
Sorry for not understanding more

@gulab

Update:
Managed to get rid of the “String constants…” by letting all of the text run on the same row in the properties selector.
Now that I run it it cannot find the UI element.
Could it be something odd with the URL or am I just too stupid to understand?

Here is the URL in case you want to see what it is like:

Bump