3

I'm using DalekJS with PhantomJS to test a web application. I have important assertions which depend on the browser language. And these fail if the language is not English.

Any Ideas how I can set the default browser language of pantomjs??

Cheers izocan.

Miroslav Popovic
  • 11,805
  • 2
  • 35
  • 47
izocan
  • 281
  • 1
  • 3
  • 14

2 Answers2

1

This question has been further discussed here: https://groups.google.com/forum/#!topic/dalekjs/HHt6eoZRQc4

-1

Let me answer my own question:

The problem is solved when you use following code in your index.html:

  <script>
    localStorage.lang = 'en';
  </script>

So the site will be displayed in english no matter which browser is used.

izocan
  • 281
  • 1
  • 3
  • 14