Roger Ineichen wrote:
> Log message for revision 40515:

Here is what I'd do:

 they are provided in a aseparate section. To see anything useful, we have to
 add an object to the folder first:
- >>> link = 'http://localhost/@@+/action.html?type_name=zope.app.file.File'
-    >>> browser.getLink(url=link).click()
+    >>> import re
+    >>> browser.getLink(re.compile('^File$')).click()
     >>> import cStringIO
     >>> browser.getControl('Data').value = cStringIO.StringIO('content')
     >>> browser.getControl(name='add_input_name').value = 'file.txt'


I'm not really a big fan of using regular expressions in testbrowser,
but they exist and we don't have time to implement something better
(probably XPath) before 3.2 is released.
--
Benji York
Senior Software Engineer
Zope Corporation
_______________________________________________
Zope3-dev mailing list
Zope3-dev@zope.org
Unsub: http://mail.zope.org/mailman/options/zope3-dev/archive%40mail-archive.com

Reply via email to