In this article we will talk about running Selenium test with .Net core 2.0 Preview 2 using Visual Studio 2017 15.3
I am very happy and excited to write this article, since many of automation testers like you and me were waiting for this news and its finally happening !
Here is the System Requirement for running Selenium with .Net core
Once installed, you need to follow following steps
Create new Unit Test Project for .Net Core
Add following Nuget references to the project
And it looks something like this
Finally write the following code and its available GitHub here
public class UnitTest1
public void TestMethod1()
IWebDriver driver = new ChromeDriver(@"C:\Users\Karthik\source\repos\SeleniumWithCore2\SeleniumWithCore2\bin\Debug\netcoreapp2.0\");
Console.WriteLine("Test Completed !!!");
You can watch the complete discussion in the video below
Thanks for reading the post and watching the video!!!
Please leave your comments and let me know if there is anything I should update in this post.