Hi,all:
I'm using ruby 1.9.2 and watir 1.8.0.
when i run this scripts:
require 'watir'
require 'watir/screen_capture'
include Watir::ScreenCapture
screen_capture("1.bmp",false,false)
an exception will be thrown: the infomation is like this:
C:/Ruby191/lib/ruby/1.9.1/Win32API.rb:21:in `pack': can't convert
String into Integer (TypeError)
from C:/Ruby191/lib/ruby/1.9.1/Win32API.rb:21:in `block in call'
from C:/Ruby191/lib/ruby/1.9.1/Win32API.rb:19:in `each'
from C:/Ruby191/lib/ruby/1.9.1/Win32API.rb:19:in `each_with_index'
from C:/Ruby191/lib/ruby/1.9.1/Win32API.rb:19:in `call'
from C:/Ruby191/lib/ruby/gems/1.9.1/gems/watir-1.8.0/lib/watir/
screen_capture.rb:54:in `screen_capture'
from test_capture.rb:5:in `<main>'
the error is point to this: args[i], = [x].pack("I").unpack("i")
if import[i] == "I"
Does anyone met this problem?
--
Before posting, please read http://watir.com/support. In short: search before
you ask, be nice.
[email protected]
http://groups.google.com/group/watir-general
[email protected]