Skip to content

Commit

Permalink
Tests for reload() and goBack(); found and fixed a bug while doing this.
Browse files Browse the repository at this point in the history
  • Loading branch information
strichter committed Jul 27, 2005
1 parent d2bbc86 commit 0eb444a
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 1 deletion.
29 changes: 29 additions & 0 deletions testbrowser/README.txt
Expand Up @@ -226,6 +226,35 @@ area's title (or other tag attgributes):
...


Other Navigation
----------------

Like in any normal browser, you can reload a page:

>>> browser.open('http://localhost/@@/testbrowser/simple.html')
>>> browser.url
'http://localhost/@@/testbrowser/simple.html'
>>> browser.reload()
>>> browser.url
'http://localhost/@@/testbrowser/simple.html'

You can also go back:

>>> browser.open('http://localhost/@@/testbrowser/notitle.html')
>>> browser.url
'http://localhost/@@/testbrowser/notitle.html'
>>> browser.goBack()
>>> browser.url
'http://localhost/@@/testbrowser/simple.html'


Controls
--------

One of the most important features of the browser is the ability to inspect
and fill in values for the controls of input forms.


Forms
-----

Expand Down
2 changes: 1 addition & 1 deletion testbrowser/browser.py
Expand Up @@ -109,7 +109,7 @@ def reload(self):

def goBack(self, count=1):
"""See zope.app.testing.testbrowser.interfaces.IBrowser"""
self.mech_browser.back(self, count)
self.mech_browser.back(count)
self._changed()

def addHeader(self, key, value):
Expand Down

0 comments on commit 0eb444a

Please sign in to comment.