Home / Interview /Setup Selenium with...
Admin
2023-09-13
0 mins read
Open Visual Studio
Click on File >> New >> Project
In New Project template,
After the successful creation of the project, the below screen would be displayed:
To install the Selenium WebDriver, follow the below steps:
Click on Tools >> NuGet Package Manager >> Manage NuGet Package for Solution
In the next screen,
Review the changes and click on OK in the Preview pop-up.
After the successful installation of Selenium WebDriver, the below message will be displayed in the Output window.
We would be executing our Selenium scripts as well as automating any web application in Chrome browser. Hence, to launch the Chrome browser, we need to have Chrome Driver downloaded in the system.
To download Chrome Driver, follow the below steps:
Click on Help >> About Google Chrome.
In the next screen, Chrome version is displayed in About Chrome section
Open below link to download Chrome Driver:
https://chromedriver.chromium.org/downloads
Based on the Chrome browser version, click on the Chrome Driver download link:
On click of the download link, a window will open specifying the chrome Driver for various platforms. Download the one according to your system’s configuration.
On click of the link, Chrome Driver zip file will get downloaded. Unzip the file and place it in some folder.
Right click on Project and click on Add >> New Item...
In Add New Item template, click on Class under Visual C# items and provide the Name as DLADemo.cs and click on Add button.
In Add New Item template, click on Class under Visual C# items and provide the Name as DLADemo.cs and click on Add button.