473,386 Members | 1,715 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Automate webbrowser login

Been a while since playing in .NET. What I want to do is common, but I can't
find a straightforward anwer. I have a webbrowser1 that opens a url, I want
to be able to log into this automatically with username and password. There
is no string to grab after login that i can just enter so what i need to do
is assign values to the various inputs. Here is an example from the page
<td class="tbLabel" align="Right"><span id="lblPassword"
key="Password">Password</span>:</td><td><input name="txtPass" id="txtPass"
type="password"

if i take the source code and add to the above Value="password" it will fill
it out. how do i set a value to that particular item and then submit it?
This is the submit line

<input type="submit" name="Login" value="Logon" id="Login" tabindex="3"
class="btn"

key="Logon" onmouseover="this.className='btn btnhov'"
onmouseout="this.className='btn'" />

Thanks
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
Oct 24 '07 #1
1 1577
Finally found a full answer. if you need to do the same go here and download
the zip

http://www.vbforums.com/showthread.php?t=416275
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
"John Bundy" wrote:
Been a while since playing in .NET. What I want to do is common, but I can't
find a straightforward anwer. I have a webbrowser1 that opens a url, I want
to be able to log into this automatically with username and password. There
is no string to grab after login that i can just enter so what i need to do
is assign values to the various inputs. Here is an example from the page
<td class="tbLabel" align="Right"><span id="lblPassword"
key="Password">Password</span>:</td><td><input name="txtPass" id="txtPass"
type="password"

if i take the source code and add to the above Value="password" it will fill
it out. how do i set a value to that particular item and then submit it?
This is the submit line

<input type="submit" name="Login" value="Logon" id="Login" tabindex="3"
class="btn"

key="Logon" onmouseover="this.className='btn btnhov'"
onmouseout="this.className='btn'" />

Thanks
--
-John
Please rate when your question is answered to help us and others know what
is helpful.
Oct 25 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
by: Jeff | last post by:
Hi, I'm trying to automate a login and file download process. This occurs over the web. I have the code that opens Internet Explorer and navigates to the website. The first page that comes up...
12
by: MeNotHome | last post by:
I need to be able to open up a URL and enter some data, press a button and then wait for the page to load and then click a check box and press another button. Is there a good example on the...
0
by: Server Girl | last post by:
I am using a WebBrowser control, and I login using this code: byte postArgs = System.Text.Encoding.ASCII.GetBytes ( LOGIN_PARAMETERS ); mainWebBrowser.Navigate ( LOGIN_URI, null, postArgs, ""...
0
by: mracuraintegra | last post by:
I'm stuck on a pretty big problem, and can't seem to find a solution, so any help would be greatly appreciated! I'm working with the default page generated for remote desktop web clients (in the...
3
by: Frode Nilsen | last post by:
Ref. http://support.microsoft.com/kb/834489/en-us Now that http://username:password@site.com no longer is an accepted syntax in IE, I suddenly have a case in a project I'm working on. The...
0
by: John Guarnieri | last post by:
I have some code that I downloaded from Planet source code that will place all the links on a web page into a list box. When I use this code in my app it works on just the first web page when I...
4
by: danielduq | last post by:
Hey everyone, This is my first post here - so I'm not sure I'll phrase this question right, but here goes: I need to create a Visual Basic 6 program to automate a login to a web site and then...
9
by: AGP | last post by:
My project uses a Webbroswer control to navigate to certain websites and do some processing on the info found there. However, my company has a proxy server which I must authenticate through to get...
4
by: kimiraikkonen | last post by:
Hi, Just to test, i placed a simple webbrowser to login a site, this site has no problems and has same error with IE6 SP2 but it's suppressed as well and no problem with Firefox browser, but using...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.