PHP 클래스 WebDriver\Container

상속: extends webdriver\AbstractWebDriver
파일 보기 프로젝트 열기: instaclick/php-webdriver

공개 메소드들

메소드 설명
__call ( $name, $arguments )
__construct ( $url = 'http://localhost:4444/wd/hub' )
element ( string $using = null, string $value = null ) : WebDriver\Element Find element: /session/:sessionId/element (POST) Find child element: /session/:sessionId/element/:id/element (POST) Search for element on page, starting from the document root.
elements ( string $using = null, string $value = null ) : array Find elements: /session/:sessionId/elements (POST) Find child elements: /session/:sessionId/element/:id/elements (POST) Search for multiple elements on page, starting from the document root.
locate ( string $using, string $value ) : array Return JSON parameter for element / elements command

보호된 메소드들

메소드 설명
getElementPath ( string $elementId ) : string Get wire protocol URL for an element
webDriverElement ( mixed $value ) : WebDriver\Element | null Return WebDriver\Element wrapper for $value

비공개 메소드들

메소드 설명
parseArgs ( string $method, array $argv ) : array Parse arguments allowing either separate $using and $value parameters, or as an array containing the JSON parameters

메소드 상세

__call() 공개 메소드

public __call ( $name, $arguments )

__construct() 공개 메소드

public __construct ( $url = 'http://localhost:4444/wd/hub' )

element() 공개 메소드

Find element: /session/:sessionId/element (POST) Find child element: /session/:sessionId/element/:id/element (POST) Search for element on page, starting from the document root.
public element ( string $using = null, string $value = null ) : WebDriver\Element
$using string the locator strategy to use
$value string the search target
리턴 WebDriver\Element

elements() 공개 메소드

Find elements: /session/:sessionId/elements (POST) Find child elements: /session/:sessionId/element/:id/elements (POST) Search for multiple elements on page, starting from the document root.
public elements ( string $using = null, string $value = null ) : array
$using string the locator strategy to use
$value string the search target
리턴 array

getElementPath() 추상적인 보호된 메소드

Get wire protocol URL for an element
abstract protected getElementPath ( string $elementId ) : string
$elementId string
리턴 string

locate() 공개 메소드

Return JSON parameter for element / elements command
public locate ( string $using, string $value ) : array
$using string locator strategy
$value string search target
리턴 array

webDriverElement() 보호된 메소드

Return WebDriver\Element wrapper for $value
protected webDriverElement ( mixed $value ) : WebDriver\Element | null
$value mixed
리턴 WebDriver\Element | null