I would like to know if it’s possible to find or validate that a hyperlink exists within a page.
The case is that I have to use the search feature in the page that takes me to the results page where I have to validate if a specific hyperlink exists from all the results.
Search for “ABC”
The results page will display many results containing “ABC”
Find/validate that the result with the specific hyperlink for “ABC” exists.
Should also add - is they hyperlink typed out as the actual link? Or does it have some other display text?
If the links have some kind of display text like “click here”, but you want to check the actual hyperlink, you might have to use Get Attribute to get the “href” attribute, and check if that matches your required hyperlink.
I was able to configure the “Find Children” activity to get all the “A” tags on the page as you mentioned, then I used a “For Each” activity and “Get Attribute” activity inside it to get the href values.
Is it possible to get the index of the results so I can identify the position of a specific result in the page?