Open robwha opened 10 years ago
I have just merged a pull request that adds a new property to the options: pageOptions
. This property will be used as options for phantomJS' page
object. You should now be able to set the user agent with: options.pageOptions.settings.userAgent = "Your User Agent"
. See http://phantomjs.org/api/webpage/property/settings.html for more information.
I'm trying to pass the user agent into Phantomjs to emulate mobile pages. Any ideas on how or could this be added?