Testing test_functional_browser_cart.txt gives following error.
$ ./bin/instance test -s Products.PloneGetPaid -t
test_functional_browser_cart_txt
line 88, in test_functional_browser_cart.txt
Failed example:
browser.getLink('Add to Cart').click()
Exception raised:
Traceback (most recent call last):
File
"/home/taito/Development/homepage/parts/zope2/lib/python/zope/testing/doctest.py
",
line 1348, in __run
compileflags, 1) in test.globs
File "<doctest test_functional_browser_cart.txt[55]>", line 1, in ?
browser.getLink('Add to Cart').click()
File
"/home/taito/Development/homepage/parts/zope2/lib/python/zope/testbrowser/browse
r.py",
line 297, in getLink
return Link(self.mech_browser.find_link(**args), self)
File
"/home/taito/Development/homepage/parts/zope2/lib/python/mechanize/_mechanize.py
",
line 499, in find_link
raise LinkNotFoundError()
LinkNotFoundError
Need to fix line 88
# >>> browser.getLink('Add to Cart').click()
>>> browser.getControl('Add to Cart').click()
Original issue reported on code.google.com by taito.ho...@gmail.com on 13 Apr 2009 at 12:16
Original issue reported on code.google.com by
taito.ho...@gmail.com
on 13 Apr 2009 at 12:16