我正在尝试在 Windows 7 上使用 headless with 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?