Join GitHub today
Cannot connect to X server error #402
Running on Ubuntu
webkit_server: cannot connect to X server
Webkit needs an X server in order to be able to render. If you're running on any Linux server distribution then you won't have an X server running. You can use the xvfb package to generate a virtual framebuffer for the duration of your tests. For example:
If you are running this on a build server you might have something like this:
Thank you for the reply.
Capybara.current_driver = :webkit
gem list on Linode
*** LOCAL GEMS ***
I tried this on my EC2 and on Linode
Please tell me if I am going wrong somewhere because its working fine on my local machine which is running on ubuntu 10.04 and does not even have xvfb package
Your local machine will have a desktop session which therefore has an X session running, that's why it works.
You just need to pass the name of the executable you're using to xvfb-run. In the above, the
How to fix the below error. i have installed QT5 and the environment is linux.
�[31mFailure/Error: login_as user, property�[0m