or
HtmlDiv gridDiv = Find.ById<HtmlDiv>(
"ctl00_cphApp_rdProducts_C_grdMyProducts"
);
// HTML ID = id="ctl00_cphApp_rdProducts_C_grdMyProducts"
HtmlDiv content = gridDiv.Find.ByAttributes<HtmlDiv>(
"rdCenter"
);
// class=rdCenter
HtmlTable table = content.Find.ByTagIndex<HtmlTable>(
"table"
, 0);
Log.WriteLine(
"Rows Count: "
+ table.Rows.Count.ToString());
foreach
(HtmlTableRow row
in
table.AllRows)
{
foreach
(HtmlTableCell cell
in
row.Cells)
{
Log.WriteLine(cell.InnerText);
}
}
_browser.WaitForFrame(
new
ArtOfTest.WebAii.Core.FrameInfo() { Id =
"DetailsView"
});