splinter icon indicating copy to clipboard operation
splinter copied to clipboard

Existing profile is not loaded

Open fouvry opened this issue 2 years ago • 3 comments

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?

fouvry avatar Sep 22 '23 07:09 fouvry

I'm having the same issue. Checking ps aux firefox is getting passed -profile /tmp/rust_mozprofile46atIn

Yarn avatar Nov 12 '23 07:11 Yarn

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

Yarn avatar Nov 12 '23 08:11 Yarn

Can confirm that setting the Firefox profile using options does work.

kensthilaire avatar Jan 02 '24 01:01 kensthilaire