views:

545

answers:

1

I've been looking for a while and still haven't found anything. When I run my Selenium tests from within Eclipse, it opens up a Firefox browser which always has English as its default locale. Changing default browser settings doesn't change the fact that each new browser opened by Selenium has an English locale.

I haven't found any way in the API to set something other than English as my locale. I've tried setting the locale as a VM parameter for the Selenium server, I've tried setting it for my tests.

There's got to be some obvious way of doing this that I'm missing that will result in easy rep for you. :) Any thoughts?

+3  A: 

My idea to solve this...

Create Firefox Profiles and open them with Selenium. You can modify them for your needs.

Selenium Documentation

By using specific profiles you can avoid this issue. It is not a "nice and clean" Solution..but it works...at least for me.

bastianneu
I can confirm this is the best solution for now. This sounds like a good feature request, though, so please open an issue!
Patrick Lightbody