Given this XML, what XPath returns all elements whose prop attribute contains Foo (the first three nodes):
prop
Foo
If you also need to match the content of the link itself, use text():
//a[contains(@href,"/some_link")][text()="Click here"]