PHP Class Nearsoft\SeleniumClient\TargetLocator

Afficher le fichier Open project: nearsoft/php-selenium-client

Méthodes publiques

Méthode 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 méthode

public __construct ( WebDriver $driver )
$driver WebDriver

activeElement() public méthode

Finds the active element on the page and returns it
public activeElement ( ) : WebElement
Résultat WebElement

alert() public méthode

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

frame() public méthode

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

newTab() public méthode

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
Résultat string The handle of the previously active window

window() public méthode

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