Simulating WWW button press

Roger Upole rupole at msn.com
Mon Jan 1 19:20:23 EST 2001


If you are exploring it via Internet Explorer and win32com, you can get
the button object and activate it like this:
btnobjs = ieobject.Document.getElementsByName('zipallpage')  ### always
returns a collection
btnobjs[0].click()
    hth
     Roger Upole

"Lutz Schroeer" <Lutz.Schroeer at tu-clausthal.de> wrote in message
news:Xns901CE2154Latzikatz at 139.174.2.56...
> Hi,
>
> I try to write a program which explores a WWW-site. Unfortunately not all
> links on this site are done by a standard "<a href=""></a>" construct but
> with a button:
>
> [...]
> <INPUT NAME="zipallpage" TYPE="submit" VALUE="Get all files">
> [...]
>
> How do I get my Python program to simulate the button being pressed to
> retrieve the data which hides behind the button?
>
> Lutz






More information about the Python-list mailing list