neilkonitzer
Programmer
Greetings,
I am now using VB.NET 2005 and have a Winforms application with a WebBrowser control. I am trying to programmatically simulate entering in values on the web form and then following it by clicking a button on the form.
While I have no problem populating the text controls on the form with no problem...
WebBrowser1.Document.GetElementById("username").InnerText = "testLogin"
WebBrowser1.Document.GetElementById("password").InnerText = "testPassword"
I am not able to find a way to simulate clicking on the form's login button.
Anyone have any ideas?
For instance, WebBrowser1.Document.GetElementById("login").Click (the method does not exist)
Thanks in advance!
NOTE: I am familiar with using the COM web browser component, but would prefer to handle this with managed code.
Neil Konitzer
Freisoft Consulting Services, Inc.
I am now using VB.NET 2005 and have a Winforms application with a WebBrowser control. I am trying to programmatically simulate entering in values on the web form and then following it by clicking a button on the form.
While I have no problem populating the text controls on the form with no problem...
WebBrowser1.Document.GetElementById("username").InnerText = "testLogin"
WebBrowser1.Document.GetElementById("password").InnerText = "testPassword"
I am not able to find a way to simulate clicking on the form's login button.
Anyone have any ideas?
For instance, WebBrowser1.Document.GetElementById("login").Click (the method does not exist)
Thanks in advance!
NOTE: I am familiar with using the COM web browser component, but would prefer to handle this with managed code.
Neil Konitzer
Freisoft Consulting Services, Inc.