I’m developing automation program using winforms webbrowser control. I am able to get the htmlelement at the first few web pages. But i’m unable to get the htmlelement from certain pages and i’m using the same method like what i have done for the first few web pages (The few first pages htmlelement are retrieved successfully).
HtmlElement createButton = this.extendedWebBrowser2.Document.GetElementById("createButton");
HtmlElement textArea = this.extendedWebBrowser2.Document.GetElementById("query");
HtmlElement filename = this.extendedWebBrowser2.Document.GetElementById("filename");
HtmlElement cancelBtn = this.extendedWebBrowser2.Document.GetElementById("cancelBtn");
it returned null and i have no idea why it return null althought the elements exist at the pages. Why and what to do so i can detect the html element? What kind of reasons can cause it is unable to be detected?
The reason of unable to get the Html Elements is because the Html Elements are embedded in the FrameSet. To access the FrameSet :