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

Can i use "Firefox Profile" ? #30

Open
ZeroTworu opened this issue Apr 25, 2018 · 4 comments
Open

Can i use "Firefox Profile" ? #30

ZeroTworu opened this issue Apr 25, 2018 · 4 comments

Comments

@ZeroTworu
Copy link

Selenium support what feature, but i dont find any about this in examples or sources where.

@ojii
Copy link
Contributor

ojii commented Apr 25, 2018

I haven't tried profiles yet, but you should be able to use them.

For on-disk profiles, doing this should work:

ff = Firefox(**{"moz:firefoxOptions": {
    "args": ["-profile", "/path/to/my/profile"],
}})

See https://github.com/mozilla/geckodriver#mozfirefoxoptions for more details.

@s7x
Copy link

s7x commented Sep 18, 2019

Hi there,

I can confirm that it is not working properly.
When I launch with the -profile option, the browser opens up but it's not doing anything when I await session.get(URL)

@dimaqq
Copy link
Contributor

dimaqq commented Dec 16, 2020

Hmmm {"browserName":"firefox", "moz:firefoxOptions":{"args":["-headless"]}} works with geckodriver for me, so it seems that the command-line options can be passed...
PR is welcome to fix Firefox profiles!

@wojtossfm
Copy link

This is a known issue with geckodriver - see https://firefox-source-docs.mozilla.org/testing/geckodriver/Profiles.html#profiles

Note that geckodriver has a known bug concerning --profile that prevents the randomised Marionette port from being passed to geckodriver. To circumvent this issue, make sure you specify the port manually using --marionette-port .

If you specify the marionette port manually for it then you can get it to work.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants