我正试图在Windows 7上使用无头和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?
答案 0 :(得分:2)
无头宝石仅适用于Linux。它不适用于Mac或Windows。