Skip to content
This repository has been archived by the owner on Nov 29, 2018. It is now read-only.

Feature request: set browser locale via RC #1087

Closed
lukeis opened this issue Mar 2, 2016 · 5 comments
Closed

Feature request: set browser locale via RC #1087

lukeis opened this issue Mar 2, 2016 · 5 comments

Comments

@lukeis
Copy link
Member

lukeis commented Mar 2, 2016

Originally reported on Google Code with ID 1087

It would be really useful if there was a way to programmatically alter the browser's
locale. Right now all you can do is prepare a specific profile and use that, but that's
not very flexible.

(see Patrick Lightbody's comment here:
http://stackoverflow.com/questions/1838703/how-to-set-the-browser-locale-for-selenium-tests-running-in-java)

Reported by wolfgang.schnerring on 2010-12-04 17:15:49

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

More generally, manipulating FF's about:config settings would be nice, I guess.

Reported by wolfgang.schnerring on 2010-12-04 17:21:31

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

You can set about:config settings using the FirefoxProfile class in WebDriver - hopefully
as the code-bases merge, this will appear in RC soon (though it may already be do-able
somehow)

Reported by dawagner on 2010-12-04 23:59:53

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

The 1.x API is frozen, so we won't be adding additional methods to it. Fortunately,
it already has the functionality to use a "template profile", so you can use the FirefoxProfile
class from 2.x and call "layoutOnDisk" on it to create the template.

Marking this issue as fixed, as the required functionality is present.

Reported by simon.m.stewart on 2010-12-05 17:47:55

  • Status changed: Fixed

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

This isn't very portable, making it unusable for writing tests that will be run by many
people in different locations, unlike having the ability to set a parameter in the
same manner as the host name, for instance:

<parameter name="selenium.locale" value="en_IE"></parameter>

Being able to set the locale as the above example would be much preferred, and from
the returns from my Google search, would help a lot of people.

Reported by James.McBoyle on 2013-03-01 11:45:57

@lukeis
Copy link
Member Author

lukeis commented Mar 2, 2016

Reported by luke.semerau on 2015-09-17 18:11:39

  • Labels added: Restrict-AddIssueComment-Commit

@lukeis lukeis closed this as completed Mar 2, 2016
@SeleniumHQ SeleniumHQ locked and limited conversation to collaborators Mar 4, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant