Hi

I am writing an test automation library in C#, .NET 2005 using
"Microsoft.mshtml". All was
going well in testing the web application until I can go to a page
containing an IFrame element. I do not know how to access the Document

associated with the frame. I can get the IHTMLFrameElement easily
enough,but I cannot see contentDocument member in this element class. I
m only getting contentWindow that too is throwing an
InvalidCastException.

I facing this problem for every page containing an iFrame.

Thanx...
Mayank Jain