Assembly: WebDriver (in WebDriver.dll) Version: 3.1.0
public interface IWebDriver : ISearchContext, IDisposable
Public Interface IWebDriver Inherits ISearchContext, IDisposable
public interface class IWebDriver : ISearchContext, IDisposable
type IWebDriver = interface interface ISearchContext interface IDisposable end
Thetype exposes the following members.
Gets the current window handle, which is an opaque handle to this window that uniquely identifies it within this driver instance.
Gets the source of the page last loaded by the browser.
Gets the title of the current browser window.
Gets or sets the URL the browser is currently displaying.
Gets the window handles of open browser windows.
Close the current window, quitting the browser if it is the last window currently open.
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.(Inherited from IDisposable.)
Finds the first IWebElement using the given method.(Inherited from ISearchContext.)
Finds all IWebElements within the current context using the given mechanism.(Inherited from ISearchContext.)
Instructs the driver to change its settings.
Instructs the driver to navigate the browser to another location.
Quits this driver, closing every associated window.
Instructs the driver to send future commands to a different frame or window.
Gets a Screenshot object representing the image of the page on the screen.(Defined by WebDriverExtensions.)
- Control of the browser itself
- Selection of IWebElements
- Debugging aids
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.