Hi Team,
Please guide me how can I Click on a link inside a cell of a HTML table ?
In every row of the table, i have the same link with same properties.
So based on row index, I want to click the link.
Note : Using Telerik Test Studio with C# lang
So far I figured out the code as :
HtmlTable table = Find.ByExpression<HtmlTable>("TagIndex=table:0");
Assert.IsNotNull(table);
HtmlTableRow row = table.Find.ByExpression<HtmlTableRow>("innertext=~Edit","tagname=tr","tagindex=a:0"); //Finding row with index as '0'
HtmlAnchor a = row.Find.ByExpression<HtmlAnchor>("innertext=~Edit","tagname=a"); //Click on "Edit" link
a.Click();
But this code is NOT working. Please guide me how to accomplish this task ?
Note : Except links all the other cell values in the table are dynamic. So I cant rely on this changing data.