FirefoxDriver ClassWebDriver
Provides a way to access Firefox to run tests.
Inheritance Hierarchy

OnlineSystem Object
  OpenQA.Selenium.Remote RemoteWebDriver
    OpenQA.Selenium.Firefox FirefoxDriver

Namespace: OpenQA.Selenium.Firefox
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public class FirefoxDriver : RemoteWebDriver, 
	ITakesScreenshot
Remarks

When the FirefoxDriver object has been instantiated the browser will load. The test can then navigate to the URL under test and start your test.

In the case of the FirefoxDriver, you can specify a named profile to be used, or you can let the driver create a temporary, anonymous profile. A custom extension allowing the driver to communicate to the browser will be installed into the profile.

Examples

[TestFixture]
public class Testing
{
    private IWebDriver driver;
    <para></para>
    [SetUp]
    public void SetUp()
    {
        driver = new FirefoxDriver();
    }
    <para></para>
    [Test]
    public void TestGoogle()
    {
        driver.Navigate().GoToUrl("http://www.google.co.uk");
        /*
        *   Rest of the test
        */
    }
    <para></para>
    [TearDown]
    public void TearDown()
    {
        driver.Quit();
    } 
}
See Also