Selenium conundrum! Store links/text in links if certain text is present in element
I'm VERY new to Selenium and only came across it when trying to find a way to do the following:

I am a member of website which has forum groups. The website does not have a search function where you can search for all users within a group who are, say, from the UK.

What I want to do is navigate to the user list within a certain group and have a script that looks on the page for the text "United Kingdom" (the country of origin is written next to each username) and then either stores the username or (more preferable) the link which the username points to.

I have managed to write bits that do things like, highlight the term "United Kingdom" etc. But I can't seem to figure out how you search for one piece of text, but store the link which sits in the same element. 

Any help would be greatly appreciated!
Selenium conundrum! Store links/text in links if certain text is present in element
===

I'm VERY new to Selenium and only came across it when trying to find a way to do the following:

I am a member of website which has forum groups. The website does not have a search function where you can search for all users within a group who are, say, from the UK.

What I want to do is navigate to the user list within a certain group and have a script that looks on the page for the text "United Kingdom" (the country of origin is written next to each username) and then either stores the username or (more preferable) the link which the username points to.

I have managed to write bits that do things like, highlight the term "United Kingdom" etc. But I can't seem to figure out how you search for one piece of text, but store the link which sits in the same element. 

Any help would be greatly appreciated!