Skip to content

Instantly share code, notes, and snippets.

@Hwiet
Hwiet / README.md
Last active May 24, 2022 10:12
Connect Selenium to existing browser instance (Firefox)

How to connect Selenium to an existing browser instance, Firefox edition. See the example Python script.

(Disclaimer: The browser has to be reopened using the -marionette flag.)

This could be helpful for, for example, logging in to a web application yourself before running your script, so that your script doesn't have to deal with logging in (also helps with avoiding repeated logins and being subject to associated security measures).

Requirements