我想知道watirgrid/gridinit是否可以和Sikuli一起使用。 http://www.sikuli.orgwatirgrid和sikuli - 他们可以一起玩吗?
我已经有一些成功整合Sikuli用的Watir-的webdriver和黄瓜继例子
这一切都正在从JRuby中完成。
对我来说,下一步是看看我是否能使用watirgrid发送sikuli命令,但我没有成功迄今。
我跟着例子http://altentee.com/blogs/2010/watirgrid-support-for-watir-webdriver/
我输入的内容:
irb
require 'watirgrid'
require 'watir-webdriver'
require 'java'
java_import "org.sikuli.script.SikuliScript"
java_import "org.sikuli.script.Region"
java_import "org.sikuli.script.Screen"
# setup a controller on port 12351 for your new grid
controller = Controller.new(
:ring_server_port => 12351,
:loglevel => Logger::ERROR)
controller.start
# add a provider to your grid
# :browser_type => 'webdriver' if using webdriver or
# :browser_type => 'ie' if using watir...
provider = Provider.new(
:ring_server_port => 12351,
:loglevel => Logger::ERROR, :browser_type => 'webdriver')
provider.start
# connect to the grid and take all providers from it (this time only one)
grid = Watir::Grid.new(:ring_server_port => 12351, :ring_server_host => '192.168.0.107')
screen=Screen.new
grid.start(:take_all => true)
+++++++++++++一切都很好了这一点。 ++++++++++++++
+++++++++++++这是那里的车轮脱落++++++++++++ ++
+++++++++++++如何获取可供watirgrid屏幕的方法? ++++++++++++++
irb(main):029:0* grid.screen.click("StartUpAdobe\/f.png",0)
NoMethodError: undefined method `screen' for #<Watir::Grid:0x1a0283e>
from (irb):29:in `evaluate'
from org/jruby/RubyKernel.java:1088:in `eval'
from C:/jruby-1.6.2/lib/ruby/1.8/irb.rb:158:in `eval_input'
from C:/jruby-1.6.2/lib/ruby/1.8/irb.rb:271:in `signal_status'
from C:/jruby-1.6.2/lib/ruby/1.8/irb.rb:155:in `eval_input'
from org/jruby/RubyKernel.java:1419:in `loop'
from org/jruby/RubyKernel.java:1191:in `catch'
from C:/jruby-1.6.2/lib/ruby/1.8/irb.rb:154:in `eval_input'
from C:/jruby-1.6.2/lib/ruby/1.8/irb.rb:71:in `start'
from org/jruby/RubyKernel.java:1191:in `catch'
from C:/jruby-1.6.2/lib/ruby/1.8/irb.rb:70:in `start'
from C:\jruby-1.6.2\bin\irb:13:in `(root)'
我们有兴趣使用watigrid和sikuli性能测试基于VNC的应用。
我要编辑此为清楚起见,但我现在意识到我真的不能跟着你想在您的文章的细节说什么。我能否建议您重新格式化以显示您已经经历了更清晰的过程?它需要很容易遵循你的思路。这样可以防止降低投票并让您更加关注可能的答复者。 – kinofrost 2011-06-17 15:26:35