How to use axWebBrowser to interact with the HTML?
<p>I'm trying to automate system login by using webbrowser control and do some processing after i have login-ed.</p>

<p>Normally, after login into the web, it will pop up a new windows. But then, i faced a problem,if automate login with WebBrowser control, the pop-ed up new window will ask me to login again. So i have searched for the solution, MSDN suggest to use axWebBrowser and ppdisp in order to keep track of the session. </p>

<pre><code>    private void axWebBrowser1_NewWindow2(object sender, AxSHDocVw.DWebBrowserEvents2_NewWindow2Event e)
    {
        Form2 frmWB;
        frmWB = new Form2();

        frmWB.axWebBrowser1.RegisterAsBrowser = true;
        e.ppDisp = frmWB.axWebBrowser1.Application;
        frmWB.Visible = true;

    }
</code></pre>

<p>Now the problem is, i have no idea how to control the axWebBrowser1 to get the HTML ID and set attribute towards the elements in the axWebBrowser page.</p>

<p>I can set value to the element using webBrowser control, as below:</p>

<p>HtmlElement criteria = webBrowser2.Document.GetElementById("searchFields0");</p>

<p>but i cant set it like this with axWebBrowser control... is that anyway that i can use webBrowser control and also maintain the session without using axWebBrowser control?</p>
