Firefox locale not available #2851
-
Hello, I'm migrating some tests to seleniumbase, and I can't launch Firefox with the correct locale. My local Firefox is in French, but the one start for the test is in English, and don't have any other language available. Here is a part of the about:config page that is of interest :
As you can see, it correctly takes the fr locale that I request, but the automated Firefox don't have it. Is there something to do to make it available ? Thanks for the help. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
There's a section on changing locale here: For the |
Beta Was this translation helpful? Give feedback.
-
After running this: pytest --firefox --locale="fr" Sites visited became French in Firefox: If that isn't working for you, then I'm not sure what else is happening on your end. Valid local codes: SeleniumBase/help_docs/locale_codes.md For the |
Beta Was this translation helpful? Give feedback.
After running this:
pytest --firefox --locale="fr"
Sites visited became French in Firefox:
If that isn't working for you, then I'm not sure what else is happening on your end.
Valid local codes: SeleniumBase/help_docs/locale_codes.md
For the
SB()
andDriver()
formats, uselocale_code
, eg:SB(locale_code="fr")