expect-like package

Cameron Laird claird at lairds.us
Wed Dec 21 18:08:03 CET 2005


In article <mailman.2376.1135138301.18701.python-list at python.org>,
Stephen Thorne  <stephen.thorne at gmail.com> wrote:
>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/
			.
			.
			.
In a different direction, <URL: http://pexpect.sf.net >.



More information about the Python-list mailing list