Click the Start a free trial link to start a 30-day SaaS trial of our product and join our community as a trial customer. If you are an existing customer do not start a free trial.
AppDynamics customers and established members should click the sign in button to authenticate.
on 03-28-2018 10:06 AM - edited on 09-07-2018 09:31 AM by Nina.Wolinsky
How can I customize the user agent used by the Synthetic browser?
Synthetic agent v4.4
We introduced a way to configure the Synthetic Agent through in-script metadata, which is basically a way to configure the Synthetic Agent directly for hidden configuration flags or features not yet available through the UI. As an example, you can use this to set a custom user agent.
IMPORTANT NOTE: The metadata is yml, enclosed in a python comment block starting on the very first line of the script.
'''yml requestHeader: userAgent: "Mozilla/5.0 (iPhone; CPU iPhone OS 10_1_1 like Mac OS X) AppleWebKit/602.1.32 (KHTML, like Gecko) Mobile/14B100 Twitter for iPhone" ''' driver.get("http://www.mysite.com")
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form