[Zope3-checkins] SVN: Zope3/branches/3.3/src/zope/app/component/browser/registration.txt Adjust browser test after improving the registration API

Philipp von Weitershausen philikon at philikon.de
Sun Aug 13 10:56:36 EDT 2006


Log message for revision 69440:
  Adjust browser test after improving the registration API
  

Changed:
  U   Zope3/branches/3.3/src/zope/app/component/browser/registration.txt

-=-
Modified: Zope3/branches/3.3/src/zope/app/component/browser/registration.txt
===================================================================
--- Zope3/branches/3.3/src/zope/app/component/browser/registration.txt	2006-08-13 12:35:07 UTC (rev 69439)
+++ Zope3/branches/3.3/src/zope/app/component/browser/registration.txt	2006-08-13 14:56:35 UTC (rev 69440)
@@ -34,17 +34,12 @@
 
     >>> print browser.contents
     <!DOCTYPE html ...
-    ...[[zope][This object isn't yet registered. Click
-    <a href="@@addRegistration.html">here</a>
-    to register the object. (
-    This object isn't yet registered.  Click
-    <a href="@@addRegistration.html">here</a>
-    to register the object.
-    )]]...
+    ...[[zope][This object isn't yet registered.]]...
 
-To add a registration, we'll click on the "here" link:
+To add a registration, we'll click on the `Register this object`
+button:
 
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
 
 This will being up a form that provides for selection from the
 interfaces the object provides and provides and entries for name to
@@ -79,9 +74,10 @@
     <br />
     [[zope][comment: unnamed sample]]...
 
-We can create multiple registrations by selecting "here" again:
+We can create multiple registrations by clicking on *Register this
+object again*:
 
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object again').click()
     >>> browser.getControl('[[zope][Register As]]').value = 'one'
     >>> browser.getControl('[[zope][Register]]').click()
 
@@ -108,7 +104,7 @@
 sample3. First, we register sample2:
 
     >>> browser.open('http://localhost/sample2/registration.html')
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
     >>> browser.getControl('[[zope][Register As]]').value = 'two'
     >>> browser.getControl('[[zope][Register]]').click()
 
@@ -134,7 +130,7 @@
 we'll register sample 3:
 
     >>> browser.open('http://localhost/sample3/registration.html')
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
     >>> browser.getControl('[[zope][Register As]]').value = 'two'
     >>> browser.getControl('[[zope][Register]]').click()
 
@@ -213,7 +209,7 @@
 the immediately enclosing site.  To see this, we register sample2:
 
     >>> browser.open('http://localhost/sample2/registration.html')
-    >>> browser.getLink('here').click()
+    >>> browser.getControl('Register this object').click()
     >>> browser.getControl('[[zope][Register]]').click()
 
 Now we'll create a subsite and move sample2 there:



More information about the Zope3-Checkins mailing list