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).
- A Firefox browser
- geckodriver (https://github.com/mozilla/geckodriver/releases). Make sure the geckodriver executable is in your PATH.