[RESOLVED] Auto Login to webpage running javascript
I am new to programming and trying to create an application to login to a website and download a report automatically. I am stuck at the login part .
What i have so far:
Public Class Main
Private Property HtmlDocument As HtmlDocument
Private Property InptElmt As Object
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
WebBrowser1.Navigate("https://secure-ausomxjna.crmondemand.com/OnDemand/user/ReportIFrameView?SAWDetailViewURL=saw.dll?Go%26Path%3D%252fusers%252fvertafore%2523bbardorf%252fAll%2bOpen%2b-%2bFinancePro&AnalyticReportName=All+Open+-+FinancePro")
'Dim webbrowser1.navigate "https://secure-ausomxjna.crmondemand.com/OnDemand/user/ReportIFrameView?SAWDetailViewURL=saw.dll?Go%26Path%3D%252fusers%252fvertafore%2523bbardorf%252fAll%2bOpen%2b-%2bFinancePro&AnalyticReportName=All+Open+-+FinancePro"
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
WebBrowser1.Document.GetElementById("j_username").SetAttribute("value", TextBox1.Text)
WebBrowser1.Document.GetElementById("j_password").SetAttribute("value", TextBox2.Text)
The problem is i cannot hit the sumbit button. It is actually not a button by a link that is hidden and calls a javascript function
Bookmarks