The following code will get Table header names.
TableRow tableRow = Browser.Table("headerTable").TableRow("headerRow");
StringCollection headerValues = new StringCollection();
foreach (Element e in tableRow.Elements)
{
if (e.TagName.ToUpper()=="TH")
{
headerValues.Add(e.Text);
}
}
Thanks,
Md. Jawed
TableRow tableRow = Browser.Table("headerTable").TableRow("headerRow");
StringCollection headerValues = new StringCollection();
foreach (Element e in tableRow.Elements)
{
if (e.TagName.ToUpper()=="TH")
{
headerValues.Add(e.Text);
}
}
Thanks,
Md. Jawed
2 comments:
Thanks, it worked like a charm.
Your most welcome!!
~jawed
Post a Comment