1. Selenium


Today we focus on Selenium simple program which open Browser and redirects to Softpost.org using C#.net language code.

  1. Open Visual Studio and Create new Console Application also add references of OpenQA dlls as shown below:Selenium_1

Click on Add Reference then following window appears where you need to browse and add reference.Selenium_2

Start writing the below code which opens browser.


when you execute this program you may encountered error as below:


This is because geckodriver is not available in bin/debug directory of project which needs to be downloaded from seleniumhq.org site and paste it in /bin/debug/ directory of project.

Once you execute it you may find the page as below:



That’s all for the day.