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

Chapter 8

Pop quiz - the Twill language

  1. Whatever form was last touched by the formvalue command is submitted.
  2. The notfind command.
  3. Twill will report that the entire script failed, and not execute any of the later commands.

Pop quiz - browser methods

  1. The value you pass as a parameter is matched against the form's name, number, and ID.
  2. The clicked method moves the simulated input focus to a new control on the web page.
  3. The code command checks the response code and raises an exception if it doesn't match an expected value. The get_code method simply returns the response code.

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