Skip to content

Running firefoxHeadlessTest in CentOS

Roland Stens edited this page Dec 6, 2017 · 6 revisions

firefoxHeadlessTest in CentOS (see the Dockerfile) runs into an issue that requires a few things to be run before firefox can run:

Before you run ./gradle firefoxHeadlessTest, you have to run the following commands:

Xvfb :1 -screen 0 1024x768x24 &

export DISPLAY=:1

firefoxHeadlessTest also required running the following command in the docker build:

dbus-uuidgen > /var/lib/dbus/machine-id

Interestingly enough, this is not needed for chromeHeadlessTest.