Good Afternoon All,
I am creating a testing framework for a web app utilizing Selenium Web Driver and Visual Studio by way of C#. I have created a solution that includes two projects.
The first project is the the test framework which includes the Selenium Web Driver by way of NuGet and the Selenium Support file as well.
The second project included in the solution is the series of tests that will be run against the framework.
I am doing this this way to create an abstraction layer between the tests and the web driver. I have included a reference to the test framework in the second project to ensure that I can access the framework from the tests.
My issue is that whenever I try to run my tests (the second project) I receive an error stating that "OpenQA.Selenium.DriverServiceNotFoundException: The geckodriver.exe file does not exist in the current directory or in a directory on the PATH environment variable.
I can resolve this issue by placing the geckodriver.exe
file in the bin
for this project however this defeats the entire purpose of having two projects. I am using this two project model to keep all traces of selenium out of my tests and only have my framework interact with it.
It was my understanding that as my framework is the only place selenium commands are actually being fired off only my framework needed the drivers in its bin folder? Can someone confirm or deny this?