Try either:

    driver.find_element_by_xpath(u'//a[text()="Foo text"]')

or dedicated driver method:

    driver.find_element_by_link_text("Foo text")

Add `.click()` if needed.

For troubleshooting, check this [post][1] at SO.


  [1]: http://stackoverflow.com/q/18023678/55075