473,320 Members | 1,861 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,320 software developers and data experts.

Login on Internet Explorer website

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 is a login page. My goal is to have c# add the user name and password to the appropriate text boxes. After that I would like c# to simulate button clicks (I can get the actual url if need be) to select and download the appropriate file.

Can someone point me in the right direction for coding this?

Thanks,
Jeff
Nov 16 '05 #1
2 5396
Does this need to be done using C# or ASP/.NET I guess you should use some
flash type thing to do this .. I am getting the guide with this "I would
like c# to simulate button clicks :"

Nirosh.

"Jeff" <Je**@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
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 is a login page. My goal is to have c# add the
user name and password to the appropriate text boxes. After that I would
like c# to simulate button clicks (I can get the actual url if need be) to
select and download the appropriate file.
Can someone point me in the right direction for coding this?

Thanks,
Jeff

Nov 16 '05 #2
Hi Jeff,

This can be done with the DOM, something like you'd do it from JavaScript
code within the Web page. Get the Window object (IHTMLWindow[2, 3, 4]) from
the IE instance, then query for the window's Document (IHTMLDocument[2, 3,
4, 5]]) , and then use the DOM as you would do that from JavaScript (the
code snippet below is rather a pseudo-code than a working C# code):

theDocument.all["userName"].text = "JohnDoe"
theDocument.all["password"].text = "password"
theDocument.forms[0].submit();

--
Sincerely,
Dmitriy Lapshin [C# / .NET MVP]
Bring the power of unit testing to the VS .NET IDE today!
http://www.x-unity.net/teststudio.aspx

"Jeff" <Je**@discussions.microsoft.com> wrote in message
news:FC**********************************@microsof t.com...
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 is a login page. My goal is to have c# add the
user name and password to the appropriate text boxes. After that I would
like c# to simulate button clicks (I can get the actual url if need be) to
select and download the appropriate file.
Can someone point me in the right direction for coding this?

Thanks,
Jeff


Nov 16 '05 #3

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

Similar topics

15
by: Rob Evans | last post by:
Is there a way of stopping " - Microsoft Internet Explorer" being added to the browser window title ? eg, I want it to say: My Website Name and not My Website Name - Microsoft Internet...
6
by: pradeep_TP | last post by:
I am facing a strange problem with my web site. Afer reinstalling the web application on the web server, I am getting a dialog box for each page. The dialog box has the following information. ...
49
by: Atul Chaturvedi | last post by:
If we use ASP.NET 2.0 Login Control, we are unable to click on Login and Reset Buttons on Safari running on Apple Mac OS X Version 10.3.2 . How can i resolve the problem.
6
by: Kat | last post by:
Every time I attempt to run a localhost website, it asks me for a login, as if I am not a user on the local machine. I am a user on the local machine, I am an admin on the local machine. I am not...
3
by: mascouta | last post by:
Hello, i have problem to browse my website in Internet explorer 7, i got this error message when i try to access the website: http://img256.imageshack.us/img256/4058/errorintru1.jpg someone...
0
by: Peter K | last post by:
Hi I have a webservice written in C#. I can access this webservice from Internet Explorer simply by typing the appropriate url. But when I try in FireFox I get an error popup window: "...
4
by: Dominic Vella | last post by:
Hi I have a list of favorite websites in a table. I use the following command to view it: strAppName = "C:\Program Files\Internet Explorer\iexplore.exe " & me!web_address Call...
2
by: =?Utf-8?B?bWFycmNoaWU=?= | last post by:
Hi ther can anyone help me, I was able to acess my employers website, up until a few days ago, I have all the help from theit it support they can give me, they say its my provider, but I have been...
1
by: =?Utf-8?B?UGF5cm9sbCBmcnVzdHJhdGVk?= | last post by:
I am on my work computer using Windows XP, I am am using Internet Explorer 7.0 also. I am on a payroll website to do my weekly payroll. I try and view my payroll before processing it so I try and...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.