PC Review


Reply
Thread Tools Rate Thread

Anyone know how to automate Internet Explorer in .NET?

 
 
Kate Gibbs
Guest
Posts: n/a
 
      6th Aug 2003
I need to write a simple utility in VB.NET that reads an
Excel file, gets some data from a sheet, then...it needs
to automate internet explorer in a robot manner.

I know that Application Centre Test does something like
this, but it doesn't support viewstate very well, so I
need to write my own application.

What I'm really looking for are some managed classes that
will allow me to drive IE in a phantom way so that I can
see my browser session working as if I were actually
hitting the keyboard myself etc.

Anyone know how to do this?

TIA.

 
Reply With Quote
 
 
 
 
Dmitriy Lapshin [C# / .NET MVP]
Guest
Posts: n/a
 
      6th Aug 2003
Hi Kate,

If your application is a WinForms one, you may host the Web Browser ActiveX
control and automate it though exposed interfaces. VS .NET will create
managed wrappers for the IE Web Browser control and its interfaces for you.

--
Dmitriy Lapshin [C# / .NET MVP]
X-Unity Unit Testing and Integration Environment
http://x-unity.miik.com.ua
Deliver reliable .NET software

"Kate Gibbs" <(E-Mail Removed)> wrote in message
news:0a1101c35bec$7b5874f0$(E-Mail Removed)...
> I need to write a simple utility in VB.NET that reads an
> Excel file, gets some data from a sheet, then...it needs
> to automate internet explorer in a robot manner.
>
> I know that Application Centre Test does something like
> this, but it doesn't support viewstate very well, so I
> need to write my own application.
>
> What I'm really looking for are some managed classes that
> will allow me to drive IE in a phantom way so that I can
> see my browser session working as if I were actually
> hitting the keyboard myself etc.
>
> Anyone know how to do this?
>
> TIA.
>


 
Reply With Quote
 
Kate
Guest
Posts: n/a
 
      6th Aug 2003
Thats great.

I've managed to get the control working in terms of
navigating to the correct URL etc.

It's now time to drive the web page. I'm guessing I can
do this by using the Controls collection - but this is
empty (has a count of 0).

Firstly, is this the correct way to do this?

If not, do you know what alternative methods I should be
using to programatically fill-in text boxes and click on
buttons etc.
>-----Original Message-----
>Hi Kate,
>
>If your application is a WinForms one, you may host the

Web Browser ActiveX
>control and automate it though exposed interfaces.

VS .NET will create
>managed wrappers for the IE Web Browser control and its

interfaces for you.
>
>--
>Dmitriy Lapshin [C# / .NET MVP]
>X-Unity Unit Testing and Integration Environment
>http://x-unity.miik.com.ua
>Deliver reliable .NET software
>
>"Kate Gibbs" <(E-Mail Removed)> wrote in message
>news:0a1101c35bec$7b5874f0$(E-Mail Removed)...
>> I need to write a simple utility in VB.NET that reads an
>> Excel file, gets some data from a sheet, then...it needs
>> to automate internet explorer in a robot manner.
>>
>> I know that Application Centre Test does something like
>> this, but it doesn't support viewstate very well, so I
>> need to write my own application.
>>
>> What I'm really looking for are some managed classes

that
>> will allow me to drive IE in a phantom way so that I can
>> see my browser session working as if I were actually
>> hitting the keyboard myself etc.
>>
>> Anyone know how to do this?
>>
>> TIA.
>>

>
>.
>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Possible to automate Internet Explorer? The Seabat Windows XP General 0 10th Oct 2009 10:28 PM
Re: Possible to automate Internet Explorer? Paul Randall Windows XP General 0 10th Oct 2009 10:10 PM
Re: Possible to automate Internet Explorer? PA Bear [MS MVP] Windows XP General 0 10th Oct 2009 10:00 PM
Re: Possible to automate Internet Explorer? Ken Blake, MVP Windows XP General 0 10th Oct 2009 09:43 PM
Re: Possible to automate Internet Explorer? RJK Windows XP General 0 10th Oct 2009 09:24 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 12:29 PM.