when i tried to get length of the IHTMLElement collection when the collection is empty i get "
UnauthorizedAccessException". elements.length is a dynamic expression.
IHTMLElementCollection elements = ((IHTMLDocument2)document3).all; if(elements == null || elements.length==0) { // this if conditions always throws error }
Krrishna