I have some values in the registry to set the user name, I also have a web browser, How would i make the web browser auto fill in the user name field in the web page window on load?
Printable View
I have some values in the registry to set the user name, I also have a web browser, How would i make the web browser auto fill in the user name field in the web page window on load?
or how would i be able to send the username and password on window load? like to make it auto authenticate? Like usuly i make a webpage form and make it send threw a form, but is there a way to send the un and password like if you filled out the link?
Do a forum search you will find the tread.
it has been ask't before.
Use the keyword: webpagemanipulation
And there is also a sample project in the code section of the forum
theCode:WebBrowser1.Document.DomDocument.GetElementById("username").Value = TextBox1.Text
You must view the source to the page, Find the Username Textbox, Get the Id for it and then change it to the Id, Example for a vBulletin Forum Login would be...Code:"username"
Code:WebBrowser1.Document.DomDocument.GetElementById("vb_login_username").Value = TextBox1.Text
While Dcrew's answer would work, you can cute the code down a little bit using the .All property of the document:
Code:WebBrowser1.Document.All("vb_login_username").Value = TextBox1.Text