Re: scripting browsers from Python



On 31 May 2005 00:52:33 -0700, Michele Simionato
<michele.simionato@xxxxxxxxx> wrote:
> I would like to know what is available for scripting browsers from
> Python.
> For instance, webbrowser.open let me to perform GET requests, but I
> would like
> to do POST requests too. I don't want to use urllib to emulate a
> browser, I am
> interested in checking that browser X really works as intended with my
> application. Any suggestion?

I don't know of anything cross platform, or even cross browser, but on
Windows, IE can be automated via COM - see
<http://www.mayukhbose.com/python/IEC/> for example - and other
browsers should be able to be automated either via COM or by driving
the GUI with WATSUP (<http://www.tizmoi.net/watsup/intro.html>).

--
Cheers,
Simon B,
simon@xxxxxxxxxxxxxxxxxx,
http://www.brunningonline.net/simon/blog/
.



Relevant Pages

  • Re: scripting browsers from Python
    ... > to do POST requests too. ... > interested in checking that browser X really works as intended with my ... It's essentially a python commandline webbrowser suitable for testing ... in a script, and then run that script at your lesuire. ...
    (comp.lang.python)
  • Re: Linux still surfs slower than Windows
    ... That wouldn't explain why the Linux browser chokes on any given ... >>up with the same DNS configurations. ... > although it seems they do work properly with MS requests. ...
    (comp.os.linux.networking)
  • strange msg lines..
    ... No, they're not errors, they're just requests for your home page ... SetEnvIfNoCase Referer buy-vicodin-online\.us go_away ... various porn URLs as wannabe proxy requests, ... In your case, the browser identification, most likely bogus, is a common ...
    (freebsd-questions)
  • Re: IIS 6.0 NT Authorization problem, slow response
    ... they are part of an expected authentication handshake. ... not a problem with IIS but rather with something you did. ... errors are caused by your browser and not someone else? ... NT4 file security when client requests file. ...
    (microsoft.public.inetserver.iis.security)
  • Re: Windows Update Version 5 Problem
    ... with its requests and what is being received. ... I suspect it is not your browser which is telling you that but the ... It's pretty simple to test this idea by comparing the User-Agent string ... Another site which you could use for comparing browser functionality is: ...
    (microsoft.public.windowsupdate)