twill: a simple scripting language for Web browsing
twill,一个模拟浏览器行为的脚本,很有趣。
你可以先安装他
easy_install twill
示例代码:
go http://www.sina.com.cm/
show
showforms
showhistory
Python API
from twill.commands import *
go("http://www.python.org/")
showforms()
参考资料:
http://twill.idyll.org/
http://twill.idyll.org/python-api.html
http://agiletesting.blogspot.com/2005/09/web-app-testing-with-python-part-3.html
你可以先安装他
easy_install twill
示例代码:
go http://www.sina.com.cm/
show
showforms
showhistory
Python API
from twill.commands import *
go("http://www.python.org/")
showforms()
参考资料:
http://twill.idyll.org/
http://twill.idyll.org/python-api.html
http://agiletesting.blogspot.com/2005/09/web-app-testing-with-python-part-3.html


