Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Existing profile is not loaded #1196

Open
fouvry opened this issue Sep 22, 2023 · 3 comments
Open

Existing profile is not loaded #1196

fouvry opened this issue Sep 22, 2023 · 3 comments
Labels

Comments

@fouvry
Copy link

fouvry commented Sep 22, 2023

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?

@Yarn
Copy link

Yarn commented Nov 12, 2023

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

@Yarn
Copy link

Yarn commented Nov 12, 2023

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

@kensthilaire
Copy link

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

@jsfehler jsfehler added the bug label Feb 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants