Hi
My browser: IE9.
Case 1: When finding by class on IE9. Return value is 0. I don't know why? Please refer attachment
could you help me?
****************************************************
ActiveBrowser.RefreshDomTree();
HtmlDiv htmlDivMedia = Find.ById<HtmlDiv>("dnn_ctr431_ViewMediaResource_UP");
IList<HtmlListItem> htmlListEnclosure = htmlDivMedia.Find.AllByAttributes<HtmlListItem>("class=body-module");
Log.WriteLine("Enclosure: " + htmlListEnclosure.Count.ToString());
IList<HtmlListItem> htmlListContent = htmlListEnclosure[1].Find.AllByAttributes<HtmlListItem>("class=body-component-content");
Log.WriteLine("Content: " + htmlListContent.Count.ToString());
foreach ( HtmlListItem items in htmlListContent)
{
Log.WriteLine("Physical name: " + items.TextContent.ToString());
if (items.TextContent.ToString() == physicalNameString)
items.MouseClick();
}
******************************************************
Thanks