This repository contains sample code for implementing Automation for Selenium's WebDriver.
- Opens the Firefox Browser
- Navigates to http://bing.com
- 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
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
FirefoxDriver and ChromeDriver classes are inherited from RemoteWebDriver class
RemoteWebDriver class implements multiple interfaces and some are IWebDriver, IDisposable, IJavaScriptExecutor and so on
In case if you are using Firefox please install the Selenium addon.