0

Installed Xvfb using pip install robotframework-xvfb. Even after successful installation, on running tests i get below error

XVFB sample
| FAIL | EnvironmentError: Can not find Xvfb. Please install it and try again.

Olivier De Meulder
  • 2,493
  • 3
  • 25
  • 30
DISHA MUNSHI
  • 53
  • 2
  • 4
  • 8
  • Does it have to be xvfb? You could also try with phantomjs headless browser (based on webkit). – soyacz Apr 25 '16 at 18:39
  • Is the program `Xvfb` installed, and the location on your PATH? If you go to a command line prompt and run the command `Xvfb`, what happens? – Bryan Oakley Apr 25 '16 at 19:31
  • It says Xvfb is not a rcognised command. Do i have to specify the path in env variables too?? – DISHA MUNSHI Apr 26 '16 at 10:21
  • yes, as I stated in my answer below. If you're doing as Bryan said, your system doesn't have a reference to where xvfb is located and therefore cannot start/stop or interact with it in any way. – shicky Apr 26 '16 at 10:49

1 Answers1

1

You might want to refer to this question and its answers - How do I run Selenium in Xvfb?

In short, are you starting xvfb before running your tests? If you're all clear here, it sounds like perhaps you have a PATH environment variable issue

Community
  • 1
  • 1
shicky
  • 2,076
  • 5
  • 30
  • 44