[twill] mechanize._mechanize.BrowserStateError: not viewing HTML
Norman Khine
nkhine at itaapy.com
Fri Mar 31 05:15:25 PST 2006
hello,
here are some more traceback errors on a script that worked on a 0.8.4
but does not work on twill version 0.8.5.
here is the line of the script that adds some content to an html object
follow(';edit_form')
fv("1", "2", object_description)
fv("1", "6", object_body)
fv("1", "8", "../250.jpg")
fv("1", "9", "Alon")
fv("1", "10", "3d Images Library")
fv("1", "11", "../250.jpg")
fv("1", "12", "Alon")
fv("1", "13", "3d Images Library")
#fv("1", "14", "../map.jpg")
fv("1", "15", dyk_title)
fv("1", "16", dyk_description)
fv("1", "17", event_description)
fv("1", "18", event_description)
fv("1", "19", event_description)
fv("1", "20", event_description)
fv("1", "business_functions", "all")
b.submit('0')
and here is the traceback
##########
Traceback (most recent call last):
File "tests/twill_test.py", line 197, in ?
follow(';edit_form')
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.5a4-py2.4.egg/twill/commands.py",
line 183, in follow
link = browser.find_link(regexp)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.5a4-py2.4.egg/twill/browser.py",
line 181, in find_link
l = self._browser.find_link(url_regex=pattern)
File
"/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/site-packages/twill-0.8.5a4-py2.4.egg/twill/other_packages/mechanize/_mechanize.py",
line 429, in find_link
raise BrowserStateError("not viewing HTML")
mechanize._mechanize.BrowserStateError: not viewing HTML
cheers
norman
--
Norman Khine
SARL ITAAPY 9 rue Darwin, 75018 Paris - Tel +33(0)1 42 23 67 45
Mail: nkhine at itaapy.com - Fax: 01 53 28 27 88
More information about the twill
mailing list