Set default language for chrome browser using selenium grid

252 views
Skip to first unread message

Kiran S

unread,
Dec 5, 2012, 4:55:03 AM12/5/12
to seleniu...@googlegroups.com
Hello,

At the moment, our selenium scripts run on a remote machine on chrome. I would like to set the default language as English-UK for chrome browser when it starts running the tests. Could any one please let me know to achieve this? Below is the configuration file used by selenium grid. I suspect that we cannot set browser config remotely, so it has to be set in a selenium grid config file.
------------------
{
"capabilities":
        [
                {
                        "browserName":"firefox",
                        "acceptSslCerts":true,
                        "javascriptEnabled":true,
                        "takesScreenshot":true,
                        "firefox_profile":"",                        
                        "maxInstances":5
                },
                {
                        "browserName":"chrome",
                        "maxInstances":5
                },
{
                        "browserName":"internet explorer",
                        "platform":WINDOWS
                }
        ],
"configuration":
        {
                "cleanUpCycle":2000,
                "timeout":30000,
                "proxy":"org.openqa.grid.selenium.proxy.WebDriverRemoteProxy",
                "maxSession":5,
                "port": 5555,
                "host": ip,
                "register" = true ,
                "hubPort" : 4444
        }
}
-------------------------------------
Thanks,
Kiran

Krishnan Mahadevan

unread,
Dec 5, 2012, 5:17:23 AM12/5/12
to seleniu...@googlegroups.com
As long as you are packing in the chrome options via desired capabilities, to the best of my knowledge, it would be honored by the Grid.

There isn't any way in which you can do the same via the node configuration file.

Thanks & Regards
Krishnan Mahadevan

"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"



--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To post to this group, send email to seleniu...@googlegroups.com.
To unsubscribe from this group, send email to selenium-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msg/selenium-users/-/FKu79vOTCN4J.
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Kiran S

unread,
Dec 5, 2012, 5:33:18 AM12/5/12
to seleniu...@googlegroups.com
Great, I will give a try using chrome options and let you know the results! thanks!

Kiran S

unread,
Dec 5, 2012, 9:41:54 AM12/5/12
to seleniu...@googlegroups.com
chrome options via desired capabilities indeed helped to set the default language! Thanks!
Reply all
Reply to author
Forward
0 new messages