Hi guys, is there a way to connect to existing Firefox session with Selenium, how you can do it with Chrome or Chromium?
from msedge.selenium_tools import Edge, EdgeOptions # Launch Microsoft Edge (Chromium) options = EdgeOptions() options.use_chromium = True options.add_experimental_option("debuggerAddress", "127.0.0.1:9222") drivePath = r'C:\\Users\\msedgedriver.exe' driver = Edge(executable_path = drivePath, options= options)With Firefox I open a debugging session with
firefox.exe --start-debugger-server 9224 -profile C:\FirefoxTEMPBut when I try to connect it to Firefox, it does not work. I don't get where I should add debugger adress
from selenium.webdriver.firefox.options import Options options = Options() caps = webdriver.DesiredCapabilities().FIREFOX caps["marionette"] = True drivePath = r'C:\\Users\\geckodriver.exe' driver = webdriver.Firefox(firefox_options=options, capabilities=caps, executable_path = drivePath)