To be precise you should do following
dynamic div_classes = webBrowser1.Document.Body.GetElementsByTagName("div");
foreach (HtmlElement d in div_classes)
{
dynamic d1 = webBrowser1.Document.Body.GetElementsByTagName("td");
foreach (HtmlElement td in d1)
{
if (td.GetAttribute("className") == "personName")
{
personName = td.InnerText;
}
}
if (d.GetAttribute("id") == "title")
{
persontitle = d.InnerText;
}
Save_to_DB();
}
}