Automating Internet Explorer to fill out forms

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

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
 
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]
- (e-mail address removed)

Jax said:
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.
 
Thankyou for introducing me to some very interesting classes. Hmm sometime needs to spent on these...
Thanks

Jax
 
Back
Top