0

When I use WebDriver driver = new HtmlUnitDriver(); to run selenium test cases in headless mode on Windows machine then it works fine. But it doesn't work on Linux cloud. Do I need xvfb frame buffer, sample code and steps to implement this will be really helpful.

SushilG
  • 655
  • 1
  • 6
  • 19

1 Answers1

1

first install xvfb with below command

apt-get install xvfb firefox

Now run your test file using xvfb as

xvfb-run ruby test.rb