Hello Telerik Team
I Have a Issue to delete a row from a Html Table
This is How My table looks like in a webpage, I can create new by clicking the create new link , If i Add a new row its added in the bottom
for example I added Name:"Pf3"
This is my coded step to delete the third one "pf3"
[CodedStep(@"Click 'DeleteLink3'")]
public void testlising_CodedStep()
{
HtmlTable table = Find.ByExpression<HtmlTable>("TagIndex=table:0");
Assert.IsNotNull(table);
HtmlTableRow row = table.Find.ByExpression<HtmlTableRow>("innertext=pf3, tagname=td");
HtmlTableCell cell = row.Cells[3];
HtmlAnchor a = cell.Find.ByExpression<HtmlAnchor>("innertext=~delete","tagname=a");
}
I did not get the result, If i go and check in debug watch window, in the row it says Null
Table -> Row[1] -> Cells[0] = " "
Please its Urgent, in my test.
I Have a Issue to delete a row from a Html Table
This is How My table looks like in a webpage, I can create new by clicking the create new link , If i Add a new row its added in the bottom
for example I added Name:"Pf3"
Name | Description | Additional Info | Action |
---|---|---|---|
pf1 | pf11 | ||
pf2 | pf22 | ||
pf3 | pf33 | ||
[CodedStep(@"Click 'DeleteLink3'")]
public void testlising_CodedStep()
{
HtmlTable table = Find.ByExpression<HtmlTable>("TagIndex=table:0");
Assert.IsNotNull(table);
HtmlTableRow row = table.Find.ByExpression<HtmlTableRow>("innertext=pf3, tagname=td");
HtmlTableCell cell = row.Cells[3];
HtmlAnchor a = cell.Find.ByExpression<HtmlAnchor>("innertext=~delete","tagname=a");
}
I did not get the result, If i go and check in debug watch window, in the row it says Null
Table -> Row[1] -> Cells[0] = " "
Please its Urgent, in my test.