Quantcast
Channel: VBForums - Visual Basic .NET
Viewing all articles
Browse latest Browse all 27336

VS 2010 Webbrowser not filling in fields

$
0
0
Hi Guys,

I can't seem to figure out what the problem is here, i'm using the most basic code to login to a website:

Code:

        WebBrowser1.Navigate("http://site.com/auth/login")
        If (WebBrowser1.ReadyState = WebBrowserReadyState.Complete) Then
            WebBrowser1.Document.GetElementById("login").SetAttribute("value", txtBoxMozUser.Text)
            WebBrowser1.Document.GetElementById("password").SetAttribute("value", txtBoxMozPass.Text)
            WebBrowser1.Document.GetElementById("submit").InvokeMember("click")
        End If

The browser control navigates to the login page fine but doesn't attempt to enter the fields, but i did have it working an hour or so ago, nothings changed code wise i can't figure it out.

any help would be appreciated :)

cheers guys

Graham

Viewing all articles
Browse latest Browse all 27336

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>