arsenic
arsenic copied to clipboard
Can i use "Firefox Profile" ?
Selenium support what feature, but i dont find any about this in examples or sources where.
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.
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)
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!
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.