Permalink
Browse files

Driver#render renamed to Driver#save_screenshot

  • Loading branch information...
1 parent c8f243e commit 32b92adb3267ece28b3b99f42bde1df884f7054b @mhoran mhoran committed Nov 17, 2012
Showing with 2 additions and 6 deletions.
  1. +0 −4 README.md
  2. +1 −1 lib/capybara/webkit/driver.rb
  3. +1 −1 spec/driver_rendering_spec.rb
View
@@ -101,10 +101,6 @@ capybara-webkit supports a few methods that are not part of the standard capybar
page.driver.evaluate_script("window.innerWidth")
=> 500
-**render**: render a screenshot of the current view (requires [mini_magick](https://github.com/probablycorey/mini_magick) and [ImageMagick](http://www.imagemagick.org))
-
- page.driver.render "tmp/screenshot.png"
-
**cookies**: allows read-only access of cookies for the current session
page.driver.cookies["alpha"]
@@ -160,7 +160,7 @@ def has_shortcircuit_timeout?
false
end
- def render(path, options={})
+ def save_screenshot(path, options={})
options[:width] ||= 1000
options[:height] ||= 10
@@ -25,7 +25,7 @@
def render(options)
FileUtils.rm_f @file_name
- driver.render @file_name, options
+ driver.save_screenshot @file_name, options
@image = MiniMagick::Image.open @file_name
end

0 comments on commit 32b92ad

Please sign in to comment.