web driver init nudges the browser by opening a page when no session appears; os.startfile raises AttributeError on Linux/macOS, killing the retry loop on headless servers. webbrowser.open is stdlib and cross-platform with the same effect.