public function TraversableElement::hasField in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Element/TraversableElement.php \Behat\Mink\Element\TraversableElement::hasField()
Checks whether element has a field (input, textarea, select) with specified locator.
Parameters
string $locator input id, name or label:
Return value
Boolean
File
- vendor/
behat/ mink/ src/ Element/ TraversableElement.php, line 125
Class
- TraversableElement
- Traversable element.
Namespace
Behat\Mink\ElementCode
public function hasField($locator) {
return null !== $this
->findField($locator);
}