PHP Класс Nearsoft\SeleniumClient\By

Показать файл Открыть проект Примеры использования класса

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

Метод Описание
__construct ( $strategy, $selectorValue )
__toString ( )
className ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by element's css class name
cssSelector ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by element's css selector path
getSelectorValue ( )
getStrategy ( )
id ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by element's id
jsSelector ( string $selectorValue, string $selectorDefinition = '$' ) : Nearsoft\SeleniumClient\By Locate by JavaScript selector
linkText ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by element's link text
name ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by element's name
partialLinkText ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by part of element's link text
tagName ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by element's tag name
xPath ( String $selectorValue ) : Nearsoft\SeleniumClient\By Locate by element's xPath

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

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

public __construct ( $strategy, $selectorValue )

__toString() публичный Метод

public __toString ( )

className() публичный статический Метод

Locate by element's css class name
public static className ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By

cssSelector() публичный статический Метод

Locate by element's css selector path
public static cssSelector ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By

getSelectorValue() публичный Метод

public getSelectorValue ( )

getStrategy() публичный Метод

public getStrategy ( )

id() публичный статический Метод

Locate by element's id
public static id ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By

jsSelector() публичный статический Метод

Locate by JavaScript selector
public static jsSelector ( string $selectorValue, string $selectorDefinition = '$' ) : Nearsoft\SeleniumClient\By
$selectorValue string
$selectorDefinition string
Результат Nearsoft\SeleniumClient\By

linkText() публичный статический Метод

Locate by element's link text
public static linkText ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By

name() публичный статический Метод

Locate by element's name
public static name ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By

partialLinkText() публичный статический Метод

Locate by part of element's link text
public static partialLinkText ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By

tagName() публичный статический Метод

Locate by element's tag name
public static tagName ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By

xPath() публичный статический Метод

Locate by element's xPath
public static xPath ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
Результат Nearsoft\SeleniumClient\By