You are here

public function TraversableElement::findField 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::findField()

Finds field (input, textarea, select) with specified locator.

Parameters

string $locator input id, name or label:

Return value

NodeElement|null

8 calls to TraversableElement::findField()
TraversableElement::attachFileToField in vendor/behat/mink/src/Element/TraversableElement.php
Attach file to file field with specified locator.
TraversableElement::checkField in vendor/behat/mink/src/Element/TraversableElement.php
Checks checkbox with specified locator.
TraversableElement::fillField in vendor/behat/mink/src/Element/TraversableElement.php
Fills in field (input, textarea, select) with specified locator.
TraversableElement::hasCheckedField in vendor/behat/mink/src/Element/TraversableElement.php
Checks whether element has a checkbox with specified locator, which is checked.
TraversableElement::hasField in vendor/behat/mink/src/Element/TraversableElement.php
Checks whether element has a field (input, textarea, select) with specified locator.

... See full list

File

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

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

public function findField($locator) {
  return $this
    ->find('named', array(
    'field',
    $locator,
  ));
}