Skip to content

Instantly share code, notes, and snippets.

@adiel
Created January 27, 2012 11:37
Show Gist options
  • Select an option

  • Save adiel/1688401 to your computer and use it in GitHub Desktop.

Select an option

Save adiel/1688401 to your computer and use it in GitHub Desktop.

Revisions

  1. adiel created this gist Jan 27, 2012.
    20 changes: 20 additions & 0 deletions CoypuCustomProfile.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,20 @@
    [Test]
    public void CustomProfile()
    {
    Configuration.Driver = typeof (CustomFirefoxProfileSeleniumWebDriver);

    Browser.Session.Visit("https://www.relishapp.com/");
    }

    public class CustomFirefoxProfileSeleniumWebDriver : SeleniumWebDriver
    {
    public CustomFirefoxProfileSeleniumWebDriver() : base(CustomProfile())
    {
    }

    private static RemoteWebDriver CustomProfile()
    {
    var yourCustomProfile = new FirefoxProfile();
    return new FirefoxDriver(yourCustomProfile);
    }
    }