Created
January 27, 2012 11:37
-
-
Save adiel/1688401 to your computer and use it in GitHub Desktop.
Using a custom firefox profile with Coypu
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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'