Skip to content
Contains Sample code for implementing Automation with Selenium in C#
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.

Selenium WebDriver Demo

This repository contains sample code for implementing Automation for Selenium's WebDriver.

What does the Sample/Demo code do?

  • Opens the Firefox Browser
  • Navigates to
  • Finds the search box by using FindElementById(“sb_form_q”)
  • Fills in the identified text butterfly in the search box
  • Finds the search button using FindElementById(“sb_form_go”)
  • Clicks on the identified search button. So the bing will return the search results.
  • Finds the first item from the search results using * FindElementByCssSelector(“#b_results li.b_algo h2 a”)
  • Clicks on the identified first item and navigates to the first link

NuGet Packages used


This packages contains driver for GECKO and it gets copied to the Run or Debug directory


This packages contains driver for CHROME and it gets copied to the Run or Debug directory

Driver Classes

FirefoxDriver and ChromeDriver classes are inherited from RemoteWebDriver class

RemoteWebDriver class implements multiple interfaces and some are IWebDriver, IDisposable, IJavaScriptExecutor and so on

Firefox Add On

In case if you are using Firefox please install the Selenium addon.

You can’t perform that action at this time.