PHP Class DataSift\Storyplayer\BrowserLib\BaseElementAction

The main thing this base class offers is the process for converting a faked element type (such as 'buttonLabelled') into something specific that we can go and find
Inheritance: use trait VisibleElementFinder
Exibir arquivo Open project: datasift/storyplayer Class Usage Examples

Protected Properties

Property Type Description
$baseElement
$countTypes
$indexTypes
$searchTypes
$tagTypes
$targetTypes

Public Methods

Method Description
__construct ( $baseElement )

Protected Methods

Method Description
convertMethodNameToWords ( string $methodName ) : array
determineCountType ( array $words ) : integer | null
determineIndexType ( array $words ) : integer | null
determineSearchType ( array $words ) : string | null
determineTagType ( string $targetType ) : string
determineTargetType ( array $words ) : string
isPluralTarget ( string $targetType ) : boolean
retrieveElement ( $methodName, $methodArgs )
retrieveElements ( string $methodName, array $methodArgs ) : array

Method Details

__construct() public method

public __construct ( $baseElement )

convertMethodNameToWords() protected method

protected convertMethodNameToWords ( string $methodName ) : array
$methodName string camelCase string to parse
return array

determineCountType() protected method

protected determineCountType ( array $words ) : integer | null
$words array
return integer | null

determineIndexType() protected method

protected determineIndexType ( array $words ) : integer | null
$words array
return integer | null

determineSearchType() protected method

protected determineSearchType ( array $words ) : string | null
$words array
return string | null

determineTagType() protected method

protected determineTagType ( string $targetType ) : string
$targetType string
return string

determineTargetType() protected method

protected determineTargetType ( array $words ) : string
$words array
return string

isPluralTarget() protected method

protected isPluralTarget ( string $targetType ) : boolean
$targetType string
return boolean

retrieveElement() protected method

protected retrieveElement ( $methodName, $methodArgs )

retrieveElements() protected method

protected retrieveElements ( string $methodName, array $methodArgs ) : array
$methodName string
$methodArgs array
return array

Property Details

$baseElement protected_oe property

protected $baseElement

$countTypes protected_oe property

protected $countTypes

$indexTypes protected_oe property

protected $indexTypes

$searchTypes protected_oe property

protected $searchTypes

$tagTypes protected_oe property

protected $tagTypes

$targetTypes protected_oe property

protected $targetTypes