NUnitAsp

HttpClient.UserAgent Field

The user-agent string to send to the server. Useful if you want to pretend to be a specific browser. Defaults to IE_USER_AGENT.

Be careful when changing this, as ASP.NET renders controls differently for different user agents. NUnitAsp's testers may not be able to recognize a control that was rendered for a different browser.

public string UserAgent;

See Also

HttpClient Class | NUnit.Extensions.Asp Namespace