Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
agroszer committed Nov 9, 2015
1 parent fc1818b commit 6263448
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 19 deletions.
4 changes: 2 additions & 2 deletions CHANGES.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
CHANGES
=======

3.0.0 (unreleased)
2.0.1 (unreleased)
==================

- Nothing changed yet.
- Fix `over_the_wire.txt`


2.0.0 (2011-10-13)
Expand Down
17 changes: 0 additions & 17 deletions src/z3c/etestbrowser/over_the_wire.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,23 +18,6 @@ The browser can `open` web pages:
>>> # This is tricky, since in Germany I am forwarded to google.de usually;
>>> # The `ncr` forces to really go to google.com.
>>> browser.open('http://google.com/ncr')
>>> browser.url
'http://www.google.com/'
>>> 'html' in browser.contents.lower()
True

We can access the etree of the page .. contents:

>>> browser.etree.xpath('//body')
[<Element body at ...>]

We'll put some text in the query box...

>>> browser.getControl(name='q').value = 'z3c.etestbrowser'

...and then click the search button.

>>> browser.getControl('Google Search').click()
Traceback (most recent call last):
...
RobotExclusionError: HTTP Error 403: request disallowed by robots.txt
Expand Down

0 comments on commit 6263448

Please sign in to comment.