IWebDriver InterfaceWebDriver
Defines the interface through which the user controls the browser.

Namespace: OpenQA.Selenium
Assembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax

public interface IWebDriver : ISearchContext, 
	IDisposable
Remarks

The IWebDriver interface is the main interface to use for testing, which represents an idealized web browser. The methods in this class fall into three categories:
  • Control of the browser itself
  • Selection of IWebElements
  • Debugging aids

Key properties and methods are Url, which is used to load a new web page by setting the property, and the various methods similar to FindElement(By), which is used to find IWebElements.

You use the interface by instantiate drivers that implement of this interface. You should write your tests against this interface so that you may "swap in" a more fully featured browser when there is a requirement for one.

See Also