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

java - UnknownEntityTypeException: Unable to locate persister (Hibernate 5.0) -

python - ValueError: empty vocabulary; perhaps the documents only contain stop words -

ubuntu - collect2: fatal error: ld terminated with signal 9 [Killed] -