HENNGE / arsenic

Async WebDriver implementation for asyncio and asyncio-compatible frameworks
Other
350 stars 53 forks source link

Can i use "Firefox Profile" ? #30

Open ZeroTworu opened 6 years ago

ZeroTworu commented 6 years ago

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

ojii commented 6 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 3 years ago

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.