Published: 08 Apr 2018 › Updated: 08 Apr 2018
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:
- Create a C# project in Visual Studio
- Install Selenium Webdriver from Nuget package manager. Tools -> NuGet Package Managers -> Manage NuGet Packages for Solution
- Click on Browse tab.
- Write "Selenium webdriver" into search textfield
- Click on result for Selenium.WebDriver binds
- Select whatever project you would to use on the right side of list section
- Select appropriate version and click on Install button
- Wait for installation completion
- Add an empty c# file (.cs)
- Enter your code
- 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:
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.