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.
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
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.
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
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
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
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
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
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
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