There are different methods to locate an element and click it in code.
One way is to find it based on its HREF, as you asked:
You can find by any attribute you'd like, such as Id, Name, etc. Please see here
for more information.
If your element has been added to your Element Repository (by using the Add to Project Elements
feature), you can find it and click it with one line:
If you were referencing a different method of extraction, please read our article on how to Data Bind an Extraction Step
through the UI.
Finally, any normal step recorded through the UI can be customized in code by choosing that feature from the Test Step Context Menu
. Just right click the step, convert to code, and start customizing. A converted step cannot be converted back, however.
All the best,
the Telerik team