WinBatch Tech Support Home

Database Search

If you can't find the information using the categories below, post a question over in our WinBatch Tech Support Forum.

TechHome

URLs - Web - Browser Topics

Can't find the information you are looking for here? Then leave a message over on our WinBatch Tech Support Forum.

How to Control a Web Browser

Keywords: 	 control web browser OLE

Question:

The Winsock-WinInet Extender - doesn't it handle Web Page Operations?

It seems that it:

Can't handle web page interaction???
Can't enter text into a field???
Can't emulate pushing a button???

Answer:

>Can't handle web page
>interaction???
Depends. Web Browsers kind of fall into the catefory of "Terminal Emulation Programs". Its not too hard to make a give Web Browser work on one machine. But to try to make a script that runs on a lot of different machines possibly with different Web Browsers is a total disaster.

Winbatch can get web pages, fill out web forms and display web pages and all kinds of other interactions by itself. It when you try to get it to control a WeB Browser that life gets interesting.

It seems the best way to do it is to use OLE. Of course Netscape and MSIE are different. See Article ID: W14390.

>Can't enter text into a
>field???
MSIE for example does not really have any "fields". It draws something that looks like an edit box....but it is not any kind of real object like fields in dialog boxes.

SendKey works if you can get the input focus in the right place. Control Manager does not see the fields in a Web Form. The OLE example does it by going via MSIE. Some Web Browser do not support any means of automating the filling out of a form.

>Can't emulate pushing a
>button???
As above, the button in a Web Browser is not really a button. It just looks like one. Same problems as a field.
Article ID:   W14411
Filename:   Controlling Web Browsers.txt
File Created: 2000:10:10:11:45:18
Last Updated: 2000:10:10:11:45:18