こんにちは、アプリケーションを作成していGetElementByID
ます。
これはウェブページhttp://www.nexon.net/
これは私が試したコードですが、うまくいきません=/
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")
これを使用してログインを確認しようとしましたが、機能しません
If (Not WebBrowser1.Document.All.Item("gnt_play_button") Is Nothing) Then
MsgBox("Incorrect Username/password , ", 0, "Login error!")