Question

I am trying to use headless with watir on windows 7.

env.rb

if ENV['HEADLESS']
  headless = Headless.new
  headless.start
  at_exit do
    headless.destroy
  end
end

When I run a test I am getting following error

$ 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 ``'

Any Idea on how to fix this ? or this only works on linux ?

Was it helpful?

Solution

Headless gem works only on Linux. It does not work on Mac or Windows.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top