You are here

public function TraversableElement::findById in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/TraversableElement.php \Behat\Mink\Element\TraversableElement::findById()

Finds element by its id.

Parameters

string $id element id:

Return value

NodeElement|null

File

vendor/behat/mink/src/Element/TraversableElement.php, line 29

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

public function findById($id) {
  return $this
    ->find('named', array(
    'id',
    $id,
  ));
}