Hello Readers!
The objective of this blog is to provide selenium skills to manual testers and for now we will learn Selenium with C# and later to other languages such as Java, PHP, Ruby, Python and Perl.
Today we will learn Installing selenium with C#.Net
The List of Software’s you will need is as follows.
* Microsoft Visual Studio Express Edition
https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs
*Download Selenium Client & WebDriver Language Bindings for C#
http://docs.seleniumhq.org/download
Steps:
1.Install Visual Studio
2.Open Visual Studio
3.Select New project in Visual Studio

4.Now New Project window opens here you need select the Application Type We can select Windows Forms Application or Cosole Based Application.
5.Select Console Based Application.
6.Give The Project Name,Location where you want store you project in hard disk and Solution Name as shown below.
Name:SeleniumCsharpTest
Location:C:\\VisualStudio2012\\Projects
Solution Name: SeleniumCsharpTest
4.Click ok.
5.The Project is created for you with sample program class in it as shown below.

The above Program class contains main method which is the entry point for the project execution.
You can also see the Solution explorer at the right hand side showing the file structure of the project and references.

7.Add reference of Selenium Webdriver by right clicking on the project name and selecting Add Reference Option.

8.Select Browse tab and choose the webdriver.dll file you downloaded from http://docs.seleniumhq.org/download as shown below.

9.Click Ok.
With this step we successfully configured Visual Studio with C#.net and now we can use all the class defined in the name space called OpenQA.Selenium.
10.Write a small program to launch the firefox browser open www.goolge.com.
The objective of this blog is to provide selenium skills to manual testers and for now we will learn Selenium with C# and later to other languages such as Java, PHP, Ruby, Python and Perl.
Today we will learn Installing selenium with C#.Net
The List of Software’s you will need is as follows.
* Microsoft Visual Studio Express Edition
https://www.visualstudio.com/en-us/downloads/download-visual-studio-vs
*Download Selenium Client & WebDriver Language Bindings for C#
http://docs.seleniumhq.org/download
Steps:
1.Install Visual Studio
2.Open Visual Studio
3.Select New project in Visual Studio
4.Now New Project window opens here you need select the Application Type We can select Windows Forms Application or Cosole Based Application.
5.Select Console Based Application.
6.Give The Project Name,Location where you want store you project in hard disk and Solution Name as shown below.
Name:SeleniumCsharpTest
Location:C:\\VisualStudio2012\\Projects
Solution Name: SeleniumCsharpTest
4.Click ok.
5.The Project is created for you with sample program class in it as shown below.
The above Program class contains main method which is the entry point for the project execution.
You can also see the Solution explorer at the right hand side showing the file structure of the project and references.
7.Add reference of Selenium Webdriver by right clicking on the project name and selecting Add Reference Option.
8.Select Browse tab and choose the webdriver.dll file you downloaded from http://docs.seleniumhq.org/download as shown below.
9.Click Ok.
With this step we successfully configured Visual Studio with C#.net and now we can use all the class defined in the name space called OpenQA.Selenium.
10.Write a small program to launch the firefox browser open www.goolge.com.