I have a question about referencing exe files for multiple browser testing in selenium NUnit with C#. I have added the additional code to get my tests to run in each browser but each time I run the tests, I get the error : OpenQA.Selenium.DriverServiceNotFoundException. My question is, is there anyway to add the reference without specifically laying out a path? I don't think that I would be able to add a path to the current code I have, without refactoring what I have. Thanks for your help in advance.
Test Fixture
[TestFixture(typeof(FirefoxDriver))]
[TestFixture(typeof(InternetExplorerDriver))]
[TestFixture(typeof(ChromeDriver))]
public class CustomerLogin<TWebDriver> where TWebDriver : IWebDriver, new()
{
private IWebDriver driver;
private string url;
[TestFixtureSetUp]
public void FixtureSetUp()
{
url = System.Configuration.ConfigurationManager.AppSettings["homeUrl"];
this.driver = new TWebDriver();
driver.Navigate().GoToUrl(url);
driver.Manage().Timeouts().ImplicitlyWait(TimeSpan.FromSeconds(5));
}
Using statements
using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using NUnit.Framework;
using OpenQA.Selenium;
using OpenQA.Selenium.Firefox;
using OpenQA.Selenium.IE;
using OpenQA.Selenium.Chrome;
using OpenQA.Selenium.Support.UI;