PHP 클래스 Nearsoft\SeleniumClient\TargetLocator

파일 보기 프로젝트 열기: nearsoft/php-selenium-client

공개 메소드들

메소드 설명
__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