Defines the interface through which the user controls the browser.
Namespace: OpenQA.SeleniumAssembly: WebDriver (in WebDriver.dll) Version: 2.35.0.0 (2.35.0.0)
Syntax
public interface IWebDriver : ISearchContext, IDisposable
Remarks
- 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