'untuk membuka halaman web Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load WebBrowser1.Navigate("di isi link web") WebBrowser1.ScriptErrorsSuppressed = True
End Sub 'untuk mengisi form user name dan passwrd Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim allelements As HtmlElementCollection = WebBrowser1.Document.All WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text) WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text) End Sub nah,, masalah nya scrip buat mengklik tombol login nya gimana? soalnya tiap web berbeda khusunya yang tombol loginnya menggunakan image, buat master2 VB mohon pencerahan ya,, Tks
'untuk membuka halaman web
ReplyDeletePrivate Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("di isi link web")
WebBrowser1.ScriptErrorsSuppressed = True
End Sub
'untuk mengisi form user name dan passwrd
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim allelements As HtmlElementCollection = WebBrowser1.Document.All
WebBrowser1.Document.GetElementById("username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("password").SetAttribute("value", TextBox2.Text)
End Sub
nah,, masalah nya scrip buat mengklik tombol login nya gimana? soalnya tiap web berbeda khusunya yang tombol loginnya menggunakan image, buat master2 VB mohon pencerahan ya,, Tks