How to change browser language or locale in IE

353 views
Skip to first unread message

saorabh singh

unread,
Nov 12, 2013, 12:20:44 AM11/12/13
to seleniu...@googlegroups.com
Hi,
In IE , How can we change browser locale suing selenium ?

i am using Selenium webdriver latest.

i am able to achieve this in firefox by using below code, so how to replicate same in IE , 

FirefoxProfile profile = new FirefoxProfile();
ffprofile.setPreference("intl.accept_languages", locale);
WebDriver selenium = new FirefoxDriver(new FirefoxBinary(new File(browser_path)), profile);

Regards,
Saorabh Singh

Krishnan Mahadevan

unread,
Nov 12, 2013, 12:24:32 AM11/12/13
to Selenium Users
You cannot do this in IE using Selenium AFAIK.
You would have to configure the IE browser manually and then run your Selenium tests against it.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/


--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/a527b875-b374-425c-896b-faaf21b9774d%40googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

saorabh singh

unread,
Nov 12, 2013, 1:39:26 AM11/12/13
to seleniu...@googlegroups.com
ohh :( 
Can there be any way (other than manually updating the locale in IE), like system.setproperty or something like that


Regards,
Saorabh
Reply all
Reply to author
Forward
0 new messages