TestFixture:
class TestForFirefox
{
IWebDriver driver = null;
[SetUp]
public void Initialize()
{
this.driver = new FirefoxDriver();
}
[Test]
public void OpenAppTest()
{
driver.Navigate().GoToUrl("http://www.demoqa.com");
}
[TearDown]
public void CloseApp()
{
driver.Quit();
driver.Dispose();
}
}
Packages I have installed:
- NUnit 2.6.4
- NUnit Test Adapter 2.0.0
- Selenium Firefox Webdriver 0.11.1
- Selenium Support 2.53.1
- Selenium Webdriver 2.53.1
My OS: Windows 10 and Firefox Ver: 48.0.2
While running this code it shows: object reference not set to an instance of an object.