angularjs - Activating chrome language flags when activating from protractor (selenium) -
i'm writing end end tests protractor angular website.
we have support languages init chrome using --lang
flag , start other language. searched web , couldn't find example how can done.
my lead article saw , understood need add protractor config file "capabilities" section , there can define "args" property.
then tried tinker no luck.
any welcome.
thanks,
alon
how set browser language and/or accept-language header
exports.config = { capabilities: { browsername: 'chrome', chromeoptions: { // how set browser language (menus & on) args: [ 'lang=fr-fr' ], // how set accept-language header prefs: { intl: { accept_languages: "fr-fr" }, }, }, }, };
more examples:
intl: { accept_languages: "es-ar" } intl: { accept_languages: "de-de,de" }
Comments
Post a Comment