Permalink
Browse files

Improve save_screenshot documentation

  • Loading branch information...
1 parent 2b030c7 commit 502aa85d4a9c75328d162db3cdca59ad76af039b @joliss joliss committed Aug 2, 2012
Showing with 6 additions and 8 deletions.
  1. +6 −8 README.md
View
@@ -480,14 +480,6 @@ that this may break with more complicated expressions:
result = page.evaluate_script('4 + 4');
```
-### Saving screenshot
-
-In drivers which support it, you can save screenshot:
-
-```ruby
-page.save_screenshot('screenshot.png')
-```
-
### Debugging
It can be useful to take a snapshot of the page as it currently is and take a
@@ -507,6 +499,12 @@ print page.html
This is mostly useful for debugging. You should avoid testing against the
contents of `page.html` and use the more expressive finder methods instead.
+Finally, in drivers that support it, you can save a screenshot:
+
+```ruby
+page.save_screenshot('screenshot.png')
+```
+
## Transactions and database setup
Some Capybara drivers need to run against an actual HTTP server. Capybara takes

0 comments on commit 502aa85

Please sign in to comment.