splinter
splinter copied to clipboard
Existing profile is not loaded
With the following code (Splinter 0.19, Selenium 4.12, Selenium browser 0.0.15, Selenium Firefox 2.0.8)
from selenium.webdriver.firefox.service import Service
from splinter import Browser
my_service = Service(executable_path='/snap/bin/geckodriver')
with Browser('firefox', service=my_service, profile="Test profile") as browser:
browser.visit("about:support")
sleep(120)
the profile is not loaded, and a temporary profile is loaded. The same happens when I use the absolute path to the profile. What am I doing wrong? Or is the documentation not correct?
I'm having the same issue. Checking ps aux firefox is getting passed -profile /tmp/rust_mozprofile46atIn
from splinter import Browser
from selenium import webdriver
profile = webdriver.FirefoxProfile(r'/profile/path')
options = webdriver.firefox.options.Options()
options.profile = profile
browser = Browser('firefox', options=options)
this appears to work
Can confirm that setting the Firefox profile using options does work.