I have a website with a table of links inside of it. There are two/three elements (links) in the table with the same name. The only thing that distinguishes them is the header above them
< h1 class="b4">Label 1< /h1>
Would be an example. How can I get RF to go the link under the header Label 2 as opposed to Label 1? I need something besides xpath/css
because those change throughout the design.
Given your example
the easiest (XPath) way to access the anchor elements is directly using their unique
class
attributes:for the first
for the second.
If - for whatever reason - you have to use a locator relative to the headers, use this (for the second anchor element):