PHP Class Nearsoft\SeleniumClient\TargetLocator

ファイルを表示 Open project: nearsoft/php-selenium-client

Public Methods

Method Description
__construct ( WebDriver $driver )
activeElement ( ) : WebElement Finds the active element on the page and returns it
alert ( ) : Nearsoft\SeleniumClient\Alert Switches to the currently active modal dialog for this particular driver instance.
frame ( $identifier ) : Nearsoft\SeleniumClient\WebDriver Focus on specified frame
newTab ( string $url ) : string Opens a new tab for the given URL
window ( String $identifier ) : Nearsoft\SeleniumClient\WebDriver Change to the Window by passing in the name

Method Details

__construct() public method

public __construct ( WebDriver $driver )
$driver WebDriver

activeElement() public method

Finds the active element on the page and returns it
public activeElement ( ) : WebElement
return WebElement

alert() public method

Switches to the currently active modal dialog for this particular driver instance.
public alert ( ) : Nearsoft\SeleniumClient\Alert
return Nearsoft\SeleniumClient\Alert

frame() public method

Focus on specified frame
public frame ( $identifier ) : Nearsoft\SeleniumClient\WebDriver
return Nearsoft\SeleniumClient\WebDriver The current webdriver

newTab() public method

Opens a new tab for the given URL
See also: http://stackoverflow.com/a/9122450/650329
public newTab ( string $url ) : string
$url string The URL to open
return string The handle of the previously active window

window() public method

Change to the Window by passing in the name
public window ( String $identifier ) : Nearsoft\SeleniumClient\WebDriver
$identifier String either window name or window handle
return Nearsoft\SeleniumClient\WebDriver The current webdriver