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

Automating Internet Explorer to fill out forms

Jax
I am interested in finding out if it is possible with C# to manipulate IE to go to certain websites and act as a user
I basically have a process I wish to automate but this process requires the users to input information which we already have, which I feel is inefficient, how can I code Internet explorer to analyse the HTML, enter the correct information and then post it back to the website server
I've tried using SHDocVw.dll but the PostProperty() and GetProperty() dont seem to be working to well for me and there is no documentation on it so I dont even know what those methods are spposed to do

Any ideas

Jax
Nov 16 '05 #1
2 5369
Jax,

If you just have to send requests to a server, and the processing
doesn't necessarily need the DOM, you might want to consider using the
HttpWebRequest and HttpWebResponse classes to send and receive your
response. The advantages are:

- Do not require COM interop
- Do not require construction of the DOM
- Can customize every aspect of the request.

Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- mv*@spam.guard.caspershouse.com

"Jax" <an*******@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
I am interested in finding out if it is possible with C# to manipulate IE to go to certain websites and act as a user. I basically have a process I wish to automate but this process requires the users to input information which we already have, which I feel is
inefficient, how can I code Internet explorer to analyse the HTML, enter the
correct information and then post it back to the website server? I've tried using SHDocVw.dll but the PostProperty() and GetProperty() dont seem to be working to well for me and there is no documentation on it so I
dont even know what those methods are spposed to do.
Any ideas?

Jax

Nov 16 '05 #2
Jax
Thankyou for introducing me to some very interesting classes. Hmm sometime needs to spent on these...
Thanks

Jax
Nov 16 '05 #3

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

Similar topics

2
by: EricP | last post by:
I'm trying to figure out how to print from IE 6.0 using Python's Win32all com library. When I do from win32com.client import Dispatch from time import sleep ie =...
6
by: Charles Banas | last post by:
weird subject - i hope more than just one curious regular will hear me out. :) ok, i've got a bit of a big problem, and i need answers as soon as possible. i know this forum is meant for web...
12
by: SunshineGirl | last post by:
I'm trying to receive events from a running instance of Internet Explorer. So far I've only been able to receive events from an instance I launch from code, but I need to receive events from all...
6
by: tinkerman | last post by:
Hello net friends, I need to automate Internet Explorer in a very simple way. I need to: 1. press refresh (F5) on the currently loaded website. 2. press END button. 3. Click a button...
4
by: Steven Stewart | last post by:
I have a database with an Employees table and a DataRecords table. It is a one-to-many relationship. Would it be possible to allow the Employees to enter their own records via the web using...
2
by: holder | last post by:
Folks, I have a simple web page with frames. I am trying to automate internet explorer to display the page and allow access to its frames. Here is the sample code : using mshtml; static void...
1
by: Apu Nahasapeemapetilon | last post by:
Hello and thank you in advance for your help. Can anyone think of a reason why this code would work properly on one PC, but not another? I've got a System.Windows.Forms.UserControl that...
1
by: chris_j_adams | last post by:
Hi, I'm trying to use Excel VBA ('97) to send details from an Excel sheet to a web page. I'm having some success but I've one issue that's proved difficult to find in the archives. There are...
4
by: attachmatey | last post by:
Greetings: I'm looking for some help in automating (what I thought would be) a simple procedure in Internet Explorer. I'm trying to put the following operation under a button click in an MS...
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
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

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.