How can I put all twill commands together into one piece of code in a .py file?

Posted by brilliant on Stack Overflow See other posts from Stack Overflow or by brilliant
Published on 2010-04-22T05:21:55Z Indexed on 2010/04/22 5:23 UTC
Read the original article Hit count: 433

Filed under:
|
|

Hello everybody!

I have just started exploring TWILL.

Twill is an amazing scripting language for Web browsing and it does all I want!!!

So far I've been using twill from a Python shell (IDLE (Python GUI) to be precise) and I do things in the way of executing commands one by one (I mean, I type one command, run it, then type the next command):alt text alt text alt text alt text alt text alt text alt text But I don't know how to put all these commands together in one .py file, so that they would all be executed one by one automatically.

It seems that there is such possibility in twill. This example from the twill documentation page (you can see it HERE) shows us one piece of code consisting of several commands: alt text So, my question is: How can I put all commands together in twill?

© Stack Overflow or respective owner

Related posts about twill

Related posts about python