This is a migrated thread and some comments may be shown as answers.

Browser Culture (Language)

4 Answers 32 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Nigel
Top achievements
Rank 2
Nigel asked on 17 Jul 2012, 10:17 AM
Hi all,

I need to be able to set my browser culture programmatically, e.g. to 'en', 'en-GB', 'en-US', etc.
Is there a Test Studio function that does this?  If not, could somebody point me in the right direction to accomplish this using a VB code behind window?

Many thanks,
Nigel Edwards, Transition Computing.

4 Answers, 1 is accepted

Sort by
0
Nigel
Top achievements
Rank 2
answered on 18 Jul 2012, 02:39 PM
I came across a line of code at http://msdn.microsoft.com/en-us/library/se513yha.aspx:  

   Thread.CurrentThread.CurrentCulture = new CultureInfo("de-DE")

Would I be able to use this to set a culture in the VB Code Behind window?  If so, could somebody advise me what other bits I would need to make it work?

Thanks,
Nigel.
0
Anthony
Telerik team
answered on 18 Jul 2012, 05:55 PM
Hello Nigel,

Is there a Test Studio function that does this?

No, there is not. If another user has successfully implemented this, hopefully they will chime in here with an example.

All the best,
Anthony
the Telerik team
Quickly become an expert in Test Studio, check out our new training sessions!
Test Studio Trainings
0
Keith
Top achievements
Rank 1
answered on 14 Aug 2014, 12:59 PM
Hello,

I am also trying to achieve the same thing. I want to be able to set the browser language through a test script rather than have to set up the browser language manually.

Is this possible now?

Many Thanks,
Keith
0
Ivaylo
Telerik team
answered on 19 Aug 2014, 08:17 AM
Hello Keith,

Unfortunately this feature is not available and I am afraid it will not be possible to implement it at all. We cannot inject and work with the browser settings.

Thank you for your understanding.

Regards,
Ivaylo
Telerik
 
The New Release of Telerik Test Studio Is Here! Download, install,
and send us your feedback!
Tags
General Discussions
Asked by
Nigel
Top achievements
Rank 2
Answers by
Nigel
Top achievements
Rank 2
Anthony
Telerik team
Keith
Top achievements
Rank 1
Ivaylo
Telerik team
Share this question
or