arsenic icon indicating copy to clipboard operation
arsenic copied to clipboard

Can i use "Firefox Profile" ?

Open ZeroTworu opened this issue 6 years ago • 4 comments

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

ZeroTworu avatar Apr 25 '18 06:04 ZeroTworu

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.

ojii avatar Apr 25 '18 07:04 ojii

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)

s7x avatar Sep 18 '19 07:09 s7x

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!

dimaqq avatar Dec 16 '20 01:12 dimaqq

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.

wojtossfm avatar Feb 12 '21 10:02 wojtossfm