PHP Класс Nearsoft\SeleniumClient\TargetLocator

Показать файл Открыть проект

Открытые методы

Метод Описание
__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

Описание методов

__construct() публичный метод

public __construct ( WebDriver $driver )
$driver WebDriver

activeElement() публичный метод

Finds the active element on the page and returns it
public activeElement ( ) : WebElement
Результат WebElement

alert() публичный метод

Switches to the currently active modal dialog for this particular driver instance.
public alert ( ) : Nearsoft\SeleniumClient\Alert
Результат Nearsoft\SeleniumClient\Alert

frame() публичный метод

Focus on specified frame
public frame ( $identifier ) : Nearsoft\SeleniumClient\WebDriver
Результат Nearsoft\SeleniumClient\WebDriver The current webdriver

newTab() публичный метод

Opens a new tab for the given URL
См. также: http://stackoverflow.com/a/9122450/650329
public newTab ( string $url ) : string
$url string The URL to open
Результат string The handle of the previously active window

window() публичный метод

Change to the Window by passing in the name
public window ( String $identifier ) : Nearsoft\SeleniumClient\WebDriver
$identifier String either window name or window handle
Результат Nearsoft\SeleniumClient\WebDriver The current webdriver