[Zope3-dev] Re: [Zope3-checkins] SVN: Zope3/trunk/ Bugfix:
Benji York
benji at zope.com
Sat Dec 3 17:43:54 EST 2005
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
More information about the Zope3-dev
mailing list