Match a link by its exact text
Automation taskEasyAsked in: Accenture, Capgemini, TCS, Wipro
"How do you click the Logout link?" The link text locator matches the full visible text of a link (an <a> element). It works only on links, and the text must match exactly. Here you find two links by their exact text and print the id of each.