In Visual Studio, create a new project (using the menu path File –> New –> Project). Then we’ll move into a specific test project.
#How to install selenium visual studio 2015 drivers#
Selenium does support multiple drivers for different browsers and I’ll show you that in due course, but for now we’ll stick with minimum dependencies in our project.įirst I’m going to take you through a very simple example using a console project, just to get you up and running and comfortable. Selenium is configured to work with Firefox by default. As mentioned there, since Visual Studio has fully functional free editions, in this post I’ll be assuming that you are using it.Īlso, before getting started on the project, make sure you have a Firefox browser. I recommend reading the “Setting Up C#” section on my automation setup page. Getting Startedīefore we get started, you’ll need to get the relevant parts of the ecosystem set up for you. C# is an incredibly powerful language, learning much from Java and expanding upon it.Įven if you are someone who works in Java, Python or Ruby contexts, it can be good for you to see that test solutions like Selenium WebDriver are more than viable in a Windows context. The good news here is that, Windows-haters aside, Visual Studio is one of the best - if not the best - IDE on the market today. In those contexts, using C# as part of a test solution is not only justified but often mandated. Many testers find themselves in Windows shops where there is preference for Visual Studio, Team Foundation Server and other Microsoft technologies.
I’ll be covering the use of Selenium WebDriver within a C# context. In this post, I’ll focus on an ecosystem I haven’t given much attention: that of Windows and the use.