@glyph instead of Selenium, you may want to check out Playwright. https://pypi.org/project/playwright/
It allows browser automation in a very pythonic way - also headless. It installs its own Chrome/Firefox/Safari and avoids any configuration you done to your browser installs.