Chrome Hangs During Protractor Test Runs On Ubuntu

Dec 11, 2016

light-bulb-idea-icon-clipart-panda-free-clipart-images-h1fryo-clipartQuick Tip: I run Protractor tests, headlessly via XVFB, on a Ubuntu server (blog post on this to come), and was seeing Chrome annoyingly hang during test runs. I was constantly having to manually kill the chrome processes, and also an associated BrowserBlocking process. After a bunch of debugging, and searching, I finally found the solution. This simple env var fixes it:

export DBUS_SESSION_BUS_ADDRESS=/dev/null

Just add that to your .profile file, and you should be good to go.