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
Post a Comment