PHP Class DataSift\Storyplayer\BrowserLib\DomElementSearch

This class is effectively the 'map' part of our map/reduce search pattern: - this class is used to retrieve a list of DOM elements that match our search criteria - the caller then reduces the list to the single element that is required
Inheritance: use trait VisibleElementFinder
Afficher le fichier Open project: datasift/storyplayer

Protected Properties

Свойство Type Description
$topElement
$topXpath

Méthodes publiques

Méthode Description
__construct ( $topElement )
getElementsByAltText ( string $text, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByClass ( string $class, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsById ( string $id, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByLabel ( string $labelText ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByLabelIdOrName ( string $searchTerm, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByName ( string $name, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByPlaceholder ( string $text, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByText ( string $text, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByTitle ( string $title, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
getElementsByXpath ( array $xpathList ) : array<\DataSift\WebDriver\WebDriverElement>
getTopElement ( ) : DataSift\WebDriver\WebDriverElement
setTopElement ( DataSift\WebDriver\WebDriverElement $element )

Méthodes protégées

Méthode Description
convertTagsToString ( string $tags )
getElementAssociatedWithLabelElement ( DataSift\WebDriver\WebDriverElement $labelElement, string $labelText ) : DataSift\WebDriver\WebDriverElement
getTopXpath ( ) : string
setTopXpath ( string $xpath )

Method Details

__construct() public méthode

public __construct ( $topElement )

convertTagsToString() protected méthode

protected convertTagsToString ( string $tags )
$tags string

getElementAssociatedWithLabelElement() protected méthode

protected getElementAssociatedWithLabelElement ( DataSift\WebDriver\WebDriverElement $labelElement, string $labelText ) : DataSift\WebDriver\WebDriverElement
$labelElement DataSift\WebDriver\WebDriverElement
$labelText string
Résultat DataSift\WebDriver\WebDriverElement

getElementsByAltText() public méthode

public getElementsByAltText ( string $text, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$text string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByClass() public méthode

public getElementsByClass ( string $class, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$class string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsById() public méthode

public getElementsById ( string $id, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$id string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByLabel() public méthode

public getElementsByLabel ( string $labelText ) : array<\DataSift\WebDriver\WebDriverElement>
$labelText string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByLabelIdOrName() public méthode

public getElementsByLabelIdOrName ( string $searchTerm, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$searchTerm string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByName() public méthode

public getElementsByName ( string $name, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$name string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByPlaceholder() public méthode

public getElementsByPlaceholder ( string $text, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$text string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByText() public méthode

public getElementsByText ( string $text, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$text string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByTitle() public méthode

public getElementsByTitle ( string $title, string $tags = '*' ) : array<\DataSift\WebDriver\WebDriverElement>
$title string
$tags string
Résultat array<\DataSift\WebDriver\WebDriverElement>

getElementsByXpath() public méthode

public getElementsByXpath ( array $xpathList ) : array<\DataSift\WebDriver\WebDriverElement>
$xpathList array
Résultat array<\DataSift\WebDriver\WebDriverElement>

getTopElement() public méthode

public getTopElement ( ) : DataSift\WebDriver\WebDriverElement
Résultat DataSift\WebDriver\WebDriverElement

getTopXpath() protected méthode

protected getTopXpath ( ) : string
Résultat string

setTopElement() public méthode

public setTopElement ( DataSift\WebDriver\WebDriverElement $element )
$element DataSift\WebDriver\WebDriverElement

setTopXpath() protected méthode

protected setTopXpath ( string $xpath )
$xpath string

Property Details

$topElement protected_oe property

protected $topElement

$topXpath protected_oe property

protected $topXpath