Skip to content

Instantly share code, notes, and snippets.

@adiel
Created January 27, 2012 11:37
Show Gist options
  • Save adiel/1688401 to your computer and use it in GitHub Desktop.
Save adiel/1688401 to your computer and use it in GitHub Desktop.
Using a custom firefox profile with Coypu
[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);
}
}
@Rookian
Copy link

Rookian commented Jun 26, 2013

Is this gist still workiing? I get the following exception: Argument type 'OpenQA.Selenium.Remote.RemoteWebDriver' is not assignable to parameter type 'Coypu.Drivers.Browser'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment