[Zope3-checkins] SVN: Zope3/trunk/src/zope/testbrowser/README.txt Backed out revision 40363, which provided a new test that doesn't pass.

Jim Fulton jim at zope.com
Sun Nov 27 16:12:25 EST 2005


Log message for revision 40384:
  Backed out revision 40363, which provided a new test that doesn't pass.
  

Changed:
  U   Zope3/trunk/src/zope/testbrowser/README.txt

-=-
Modified: Zope3/trunk/src/zope/testbrowser/README.txt
===================================================================
--- Zope3/trunk/src/zope/testbrowser/README.txt	2005-11-27 21:11:10 UTC (rev 40383)
+++ Zope3/trunk/src/zope/testbrowser/README.txt	2005-11-27 21:12:24 UTC (rev 40384)
@@ -409,31 +409,8 @@
     >>> browser.getControl('Tres')
     <ItemControl name='single-select-value' type='select' optionValue='3'>
 
-Characteristics of controls and subcontrols are discussed in the
-'Control Objects' section below.
+Characteristics of controls and subcontrols are discussed below.
 
-Introspection to find controls returned by the server
-~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
-
-testbrowser currently doesn't help much unless you already know the
-controls you will be looking for, however, you can do some
-introspection by utilizing the underlying mechanize functionality.
-
-For example, to find all checkboxes on a page:
-
-    >>> checkboxes = [c.name for c in
-    ...               browser.getForm('controls').mech_form.controls 
-    ...               if c.type=='checkbox']
-    >>> len(checkboxes)
-    3
-    >>> checkboxes[0:2]
-    ['single-unvalued-checkbox-value', 'single-valued-checkbox-value']
-    
-You can then get the actual control as follows:
-
-    >>> browser.getControl(name=checkboxes[2])
-    <ListControl name='multi-checkbox-value' type='checkbox'>
-
 Control Objects
 ~~~~~~~~~~~~~~~
 



More information about the Zope3-Checkins mailing list