Browser Culture (Language)

5 posts, 0 answers
  1. Nigel
    Nigel avatar
    53 posts
    Member since:
    Jan 2012

    Posted 17 Jul 2012 Link to this post

    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.
  2. Nigel
    Nigel avatar
    53 posts
    Member since:
    Jan 2012

    Posted 18 Jul 2012 Link to this post

    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.
  3. Anthony
    Admin
    Anthony avatar
    19 posts

    Posted 18 Jul 2012 Link to this post

    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
  4. Keith
    Keith avatar
    1 posts
    Member since:
    Jan 2011

    Posted 14 Aug 2014 in reply to Anthony Link to this post

    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
  5. Ivaylo
    Admin
    Ivaylo avatar
    750 posts

    Posted 19 Aug 2014 Link to this post

    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!
Back to Top