Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@angelovstanton
Created February 20, 2016 10:59
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save angelovstanton/0100ac8c0047d4637270 to your computer and use it in GitHub Desktop.
Save angelovstanton/0100ac8c0047d4637270 to your computer and use it in GitHub Desktop.
FirefoxProfileManager profileManager = new FirefoxProfileManager();
FirefoxProfile profile = new FirefoxProfile();
profile.SetPreference(
"general.useragent.override",
"Mozilla/5.0 (BlackBerry; U; BlackBerry 9900; en) AppleWebKit/534.11+ (KHTML, like Gecko) Version/7.1.0.346 Mobile Safari/534.11+");
this.driver = new FirefoxDriver(profile);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment