Hello i am Making an application To login To Nexon.net , I cant Get it to Work Because The Text Fields Dont Seem To have ID to Use GetElementByID ….
This is The webpage http://www.nexon.net/
and this is the Code i tried But It doesnt Work =/
Dim Username, Password As String
Username = TextBox1.Text
Password = TextBox2.Text
WebBrowser1.Document.GetElementById("userID").SetAttribute("value", Username)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", Password)
WebBrowser1.Document.GetElementById("gnt_login_submit").InvokeMember("click")
I tried to use this to verify login But Does not work
If (Not WebBrowser1.Document.All.Item("gnt_play_button") Is Nothing) Then
MsgBox("Incorrect Username/password , ", 0, "Login error!")
Use
Document.Allinstead:Instead of
id, pass the element’snameattribute value toAlllike shown above.