Max avatar

How to setup Selenium Webdriver with C# in Visual Studio environment

mahsum

Published: 08 Apr 2018 › Updated: 08 Apr 2018How to setup Selenium Webdriver with C# in Visual Studio environment

How to setup Selenium Webdriver with C# in Visual Studio environment

Hi all,
in this post i will show how to setup C# binds of Selenium Webdriver with Visual Studio. You can follow steps:

  1. Create a C# project in Visual Studio
  2. Install Selenium Webdriver from Nuget package manager. Tools -> NuGet Package Managers -> Manage NuGet Packages for Solution

NuGet-package-manager.png

  1. Click on Browse tab.
  2. Write "Selenium webdriver" into search textfield
  3. Click on result for Selenium.WebDriver binds
  4. Select whatever project you would to use on the right side of list section
  5. Select appropriate version and click on Install button

Install-Selenium-Webdriver.png

  1. Wait for installation completion
  2. Add an empty c# file (.cs)
  3. Enter your code
  4. Click on “Run” button on menu bar

After a short while a Chrome browser will be appear, execute commands and then closed.
P.S: You should download Chrome driver or driver of whatever browser you want to use in your script(firefox, ie, safari…)

Leave How to setup Selenium Webdriver with C# in Visual Studio environment to:

Written by

Software Expert, Technology blogger

Read more #technology posts


Best Posts From Max

We have not curated any of mahsum's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.

More Posts From Max