PHP Class Nearsoft\SeleniumClient\By

Mostrar archivo Open project: nearsoft/php-selenium-client Class Usage Examples

Public Methods

Method Description
__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

Method Details

__construct() public method

public __construct ( $strategy, $selectorValue )

__toString() public method

public __toString ( )

className() public static method

Locate by element's css class name
public static className ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By

cssSelector() public static method

Locate by element's css selector path
public static cssSelector ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By

getSelectorValue() public method

public getSelectorValue ( )

getStrategy() public method

public getStrategy ( )

id() public static method

Locate by element's id
public static id ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By

jsSelector() public static method

Locate by JavaScript selector
public static jsSelector ( string $selectorValue, string $selectorDefinition = '$' ) : Nearsoft\SeleniumClient\By
$selectorValue string
$selectorDefinition string
return Nearsoft\SeleniumClient\By

linkText() public static method

Locate by element's link text
public static linkText ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By

name() public static method

Locate by element's name
public static name ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By

partialLinkText() public static method

Locate by part of element's link text
public static partialLinkText ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By

tagName() public static method

Locate by element's tag name
public static tagName ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By

xPath() public static method

Locate by element's xPath
public static xPath ( String $selectorValue ) : Nearsoft\SeleniumClient\By
$selectorValue String
return Nearsoft\SeleniumClient\By