The second way to run a Twill script from inside Python code is to store the script in a string.
>>> from twill.parse import execute_string >>> execute_string(""" ... go http://slashdot.org/ ... find this_does_not_exist ... """, no_reset = False)
no_reset = False parameter that we passed to
execute_string. We need that because if we leave it out, Twill will assume that all of our calls to
execute_string should be executed, as if they were all part of the same browser session. We don't want that because we want our tests to be ...