Referencing Selenium C# in Visual Studio

In this part we will reference Selenium libraries to our Visual Studio project. There are two ways to do this,

  • Downloading Selenium libraries from
  • Downloading via Nuget Package manager.

In this post we will focus on the second case, by downloading selenium via Nuget Package manager

Please find below the complete video of the above discussion

Thanks for reading the post and watching the video!!!

Please leave your comments and let me know if there is anything need to be improved in the post !!!

Karthik KK


  1. Shubhangi says:

    I am getting an error as ‘Failed to add the reference to ‘WebDriver” while installing Selenium WebDriver via Nuget Package manager. Am I missing anything? Please suggest.

  2. Danny says:

    Hi Karthik,

    I am very new to automation when i add the reference for both webdriver and chrome driver i get the An unhandled exception of type ‘System.InvalidOperationException’ occurred in WebDriver.dll please suggest

  3. Trinaeli says:

    Hi Im a beginner and studying Selenium C# from scratch, on this topic, what does it mean to ‘reference’ or I should say why do we need to reference / what was it important role?

  4. Rezaul Aziz says:

    Hi Karthik,

    In order to develop selenium tests using C# on a mac system, what I need to install?

    a. I need to install visual studio community version 2015 from for mac (iOS)
    b. I need to install virtual machine (parallel) to run visual studio in it
    c. Using Monaco editor

    I am confused and will highly appreciate your response.

  5. Raman Kumar says:

    Hi, I downloaded the VS Ultimate 2013 Edition and I am getting below Error:-
    “The remote name could not be resolved: ‘'”. Even i tried adding the Package through Tools Options and below Package is already added in Source
    Tell me how to get rid of this Error, I am unable to download any packages like Selenium,SpecFlow etc.

  6. Arvindraja says:

    Hi sir,
    How to create testing project which template i need to choose, you didnt mention this thing please tell me that.
    Thank you

Leave a Reply

Your email address will not be published. Required fields are marked *