Clicking a Button in IE using C#

  • Thread starter Thread starter O. Olson
  • Start date Start date
O

O. Olson

Hi,
I am a bit new to the dot Net Framework. I want to know if it is
possible to click a button in Internet Explorer using C#.
I know that we can start an instance of IE using

System.Diagnostics.Process.Start("http://www.yahoo.com/");

I want to know if it is possible for us to be able to log in to my
email account i.e. submit the login name and passwd in the opened IE
instance.

I have actually managed to do this through Perl (SAMIE http://samie.sourceforge.net/)
- It does it by accessing the DOM. However I don't know how to do this
in C#.

Thanks a lot,
O.O.
 
Do you have to start IE? In .NET 2.0 you could access the DOM if you loaded
the conent into your own WebBrowser control.
 
Do you have to start IE? In .NET 2.0 you could access the DOM if you loaded
the conent into your own WebBrowser control.

Dear Stelrad,

Thanks for posting. I actually do not want to use my own WebBrowser
control, because I want to automate my login, but later I want to
leave the door open to manual intervention depending upon the emails
that I receive. I know that I might be able to do this small part in
the WebBrowser control - but I would prefer the whole IE - unless that
is not possible.

Thanks again,
O.O.
 
Back
Top