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

Popular posts from this blog

c++ - QTextObjectInterface with Qml TextEdit (QQuickTextEdit) -

xcode - Swift Playground - Files are not readable -

jboss7.x - JBoss AS 7.3 vs 7.4 and differences -