Set user agent in PhantomJS and Protractor -


i using protractor phantomjs. how can set user agent phantomjs sends? can different different tests?

set phantomjs.page.settings.useragent under capabilities:

capabilities: {     "browsername": "phantomjs",     "phantomjs.page.settings.useragent": "mozilla/5.0 (x11; linux x86_64) applewebkit/53 (khtml, gecko) chrome/15.0.87" } 

Comments

Popular posts from this blog

javascript - Trigger mouseenter when an animated element touches mouse -

json - Zend error Connection -

java - Using Spring @Transactional with a combination of readOnly and write, when does this entity get committed? -