C# Class OpenQA.Selenium.Chrome.ChromeDriver.ChromeTargetLocator

Provides a mechanism to find targets on the page
Inheritance: ITargetLocator
Exibir arquivo Open project: epall/selenium

Public Methods

Method Description
ActiveElement ( ) : IWebElement

Finds the active element on the page

ChromeTargetLocator ( ChromeDriver instance ) : System

Initializes a new instance of the ChromeTargetLocator class

DefaultContent ( ) : IWebDriver

Finds the default content on the page

Execute ( DriverCommand command ) : ChromeResponse

Execute commands on the browser

Frame ( int frameIndex ) : IWebDriver

Switch to a frame

Frame ( string frameName ) : IWebDriver

Switch to a frame

Window ( string windowName ) : IWebDriver

Switch to a window by name

Method Details

ActiveElement() public method

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

ChromeTargetLocator() public method

Initializes a new instance of the ChromeTargetLocator class
public ChromeTargetLocator ( ChromeDriver instance ) : System
instance ChromeDriver Driver currently in use
return System

DefaultContent() public method

Finds the default content on the page
public DefaultContent ( ) : IWebDriver
return IWebDriver

Execute() public method

Execute commands on the browser
public Execute ( DriverCommand command ) : ChromeResponse
command OpenQA.Selenium.Remote.DriverCommand Command to be executed
return ChromeResponse

Frame() public method

Switch to a frame
public Frame ( int frameIndex ) : IWebDriver
frameIndex int Name of the frame you want to switch to
return IWebDriver

Frame() public method

Switch to a frame
public Frame ( string frameName ) : IWebDriver
frameName string Name of the frame you want to switch to
return IWebDriver

Window() public method

Switch to a window by name
public Window ( string windowName ) : IWebDriver
windowName string Name of the window
return IWebDriver