expect-like package

Stephen Thorne stephen.thorne at gmail.com
Tue Dec 20 23:05:24 EST 2005


On 21/12/05, Eric McCoy <ctr2sprt at comcast.net> wrote:
> So for HTTP, for example, I'd use something
> like this:
>
> send "HEAD / HTTP/1.0"
> send "Host: server.host.name"
> send ""
> expect ...
>   "^HTTP/1\.0 200.*" then return success
>   "^HTTP/1\.0 4\d\d.*" then return warning
>   else return error

Have a look at these:
  http://www.idyll.org/~t/www-tools/twill.html
  http://pbp.berlios.de/
  http://www.openqa.org/selenium/

--
Stephen Thorne
Development Engineer



More information about the Python-list mailing list