我在 Ruby 中使用 selenium webdriver。我想和Sikuli一起练习。那么有谁知道如何安装、设置和配置 Sikuli 以将 Selenium 与 Ruby 结合使用?请一步一步教我怎么做?
我安装了 jruby 和 sikuli gem,以及 Sikuli IDE,但我不知道如何配置它们一起工作。
当我运行脚本时,它总是显示:
c:/Ruby200/lib/ruby/gems/2.0.0/gems/sikuli-0.3.0/lib/sikuli/platform.rb:16:in `sikuli_script_path': Failed to load 'sikuli-script.jar' from the Sikuli home directory (LoadError)
Make sure %SIKULI_HOME% or $SIKULI_HOME is set!
from c:/Ruby200/lib/ruby/gems/2.0.0/gems/sikuli-0.3.0/lib/sikuli.rb:2:in `<top (required)>'
from c:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `require'
from c:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:110:in `rescue in require'
from c:/Ruby200/lib/ruby/site_ruby/2.0.0/rubygems/core_ext/kernel_require.rb:35:in `require'
from C:/geoic/test_sikuli.rb:11:in `<main>'
虽然我已经设置了 SIKULI_HOME= C:\Program Files (x86)\Sikuli X\
有谁知道原因?请给我一些想法。