Can my server open google-chrome (GUI) with Ruby? If not, how can I?

October 16, 2016 51 views
Ruby PHP Ubuntu

When I run my Ruby script that requires watir-webdriver which in turn uses Chrome, I get the following Ruby error:

When I run google-chrome in terminal I get the following error:

[12311:12311:1016/] Gtk: cannot open display:

I have concluded that this must be because the server is GUI-less. How can I work around this?

Be the first one to answer this question.