ITargetLocator InterfaceWebDriver
Defines the interface through which the user can locate a given frame or window.

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

public interface ITargetLocator

The ITargetLocator type exposes the following members.


Public methodActiveElement
Switches to the element that currently has the focus, or the body element if no element with focus can be detected.
Public methodAlert
Switches to the currently active modal dialog for this particular driver instance.
Public methodDefaultContent
Selects either the first frame on the page or the main document when a page contains iFrames.
Public methodFrame(Int32)
Select a frame by its (zero-based) index.
Public methodFrame(String)
Select a frame by its name or ID.
Public methodFrame(IWebElement)
Select a frame using its previously located IWebElement
Public methodParentFrame
Select the parent frame of the currently selected frame.
Public methodWindow
Switches the focus of future commands for this driver to the window with the given name.
See Also