how to perform click on an anchor tag which is in a table
i have a situation where a html table consists of an anchor tab which changes dynamically i.e. if i interrogate the anchor tag directly then it is of no use when i run the automation for second time.
what i did was i have interrogated the table in the web application with the help of html table design and now i want to do perform click method on the anchor tag which is present inside the cell of the table.
i am not sure how to do perform click on the anchor tag that is inside the cell of the table. please guide me on that.(i have uploaded the screenshot, in the screenshot i want to click on ganaRPA7777 which is an anchor tag, it is an invoice number which changes dynamically but the cell in which the invoice anchor tag is present will be the same).
***Updated by moderator: Lochan to add Categories***
When you interrogate the tag, make sure to use a generic enough match rule that it will match all instances of it on all rows. If there are no other anchor tags in the row, you could use a text match rule with a RegEx of ".*".
While capturing the anchor tag, you could apply attribute value match rule, in my experience mostly OuterHtml does the job. As Thomas mentioned, you would have to investigate which attribute is common for all tags and based on that you could apply that attribute and modify the match rule. This modifying of match rule and capturing the anchor tags dynamically is clearly explained in one of the webinars as well. You could use that as a reference
i have another question regarding similar issue. i got a situation where i am trying to interrogate an Approve button which changes dynamically same as above situation i.e. when i search for different invoices for every invoice there will be an approve tab at the top and it will be in same position always. i am exploring match rules which will be generic but till now i am unable to find.
is there any other way for this, please let me know.