Permalink
Browse files

require rubygems just in case for Image#save

  • Loading branch information...
1 parent 987dddd commit 56c6e196f4d8ffdd887234ac5a73d6d60fcc447f @jarmo jarmo committed Jan 9, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 watir/lib/watir/image.rb
View
@@ -111,7 +111,7 @@ def save(path)
end
def fill_save_image_dialog(path)
- command = "require 'rautomation';" <<
+ command = "require 'rubygems';require 'rautomation';" <<
"window=::RAutomation::Window.new(:title => 'Save Picture');" <<
"window.text_field(:class => 'Edit', :index => 0).set('#{path.gsub(File::SEPARATOR, File::ALT_SEPARATOR)}');" <<
"window.button(:value => '&Save').click"

0 comments on commit 56c6e19

Please sign in to comment.