C# Class OpenQA.Selenium.Remote.RemoteWebDriver.RemoteTargetLocator

Provides a mechanism for finding elements on the page with locators.
Inheritance: ITargetLocator
Show file Open project: epall/selenium

Public Methods

Method Description
ActiveElement ( ) : IWebElement

Finds the active element on the page and returns it

DefaultContent ( ) : IWebDriver

Change the active frame to the default

Frame ( int frameIndex ) : IWebDriver

Move to a different frame using its index

Frame ( string frameName ) : IWebDriver

Move to different frame using its name

RemoteTargetLocator ( RemoteWebDriver driver ) : System

Initializes a new instance of the RemoteTargetLocator class

Window ( string windowName ) : IWebDriver

Change to the Window by passing in the name

Method Details

ActiveElement() public method

Finds the active element on the page and returns it
public ActiveElement ( ) : IWebElement
return IWebElement

DefaultContent() public method

Change the active frame to the default
public DefaultContent ( ) : IWebDriver
return IWebDriver

Frame() public method

Move to a different frame using its index
public Frame ( int frameIndex ) : IWebDriver
frameIndex int The index of the
return IWebDriver

Frame() public method

Move to different frame using its name
public Frame ( string frameName ) : IWebDriver
frameName string name of the frame
return IWebDriver

RemoteTargetLocator() public method

Initializes a new instance of the RemoteTargetLocator class
public RemoteTargetLocator ( RemoteWebDriver driver ) : System
driver RemoteWebDriver The driver that is currently in use
return System

Window() public method

Change to the Window by passing in the name
public Window ( string windowName ) : IWebDriver
windowName string name of the window that you wish to move to
return IWebDriver