我正尝试在windows7上使用headless和watir。
env.rb
if ENV['HEADLESS']
headless = Headless.new
headless.start
at_exit do
headless.destroy
end
end当我运行一个测试时,我得到了以下错误
$ cucumber --profile bat
*** WARNING: You must use ANSICON 1.31 or higher (http://adoxa.110mb.com/ansicon) to get coloured output on Windows
Using the bat profile...
No such file or directory - which Xvfb (Errno::ENOENT)
c:/Ruby193/lib/ruby/gems/1.9.1/gems/headless-0.3.1/lib/headless/cli_util.rb:4:in ``'有什么办法解决这个问题吗?或者这只适用于linux?
发布于 2012-11-26 21:27:41
Headless gem只能在Linux上运行。它在Mac或Windows上不起作用。
https://stackoverflow.com/questions/13563141
复制相似问题