I am using a very complex setup to test various non-public webpages. I use jenkins to run the python-selenium tests within a dockerima
jenkins
python-selenium
docker
For me the solution was to install dbus-x11
apt install dbus-x11