O'Reilly logo

Python Testing Beginner's Guide by Daniel Arbuckle

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Time for action - browsing the web with Twill

We'll take Twill for a spin, using its interactive interpreter.

  1. Start the interactive Twill interpreter:
    $ twill-sh
    
    

    Note

    You may notice a couple of warnings about the deprecated md5 module when you start Twill. You may safely ignore them.

  2. Get a list of Twill commands. You can get further information about a specific command by typing help <command> at the prompt.
    >> help
    
    
    Time for action - browsing the web with Twill
  3. Tell Twill to go to a web site. Although slashdot.org is used in this example, the reader is encouraged to try out other sites as well.
    >> go http://slashdot.org/
    
    

    Twill will print out a couple of lines indicating that it is now browsing ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required