public function TraversableElement::findButton in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink/src/Element/TraversableElement.php \Behat\Mink\Element\TraversableElement::findButton()
Finds button (input[type=submit|image|button|reset], button) with specified locator.
Parameters
string $locator button id, value or alt:
Return value
NodeElement|null
2 calls to TraversableElement::findButton()
- TraversableElement::hasButton in vendor/
behat/ mink/ src/ Element/ TraversableElement.php - Checks whether element has a button (input[type=submit|image|button|reset], button) with specified locator.
- TraversableElement::pressButton in vendor/
behat/ mink/ src/ Element/ TraversableElement.php - Presses button (input[type=submit|image|button|reset], button) with specified locator.
File
- vendor/
behat/ mink/ src/ Element/ TraversableElement.php, line 95
Class
- TraversableElement
- Traversable element.
Namespace
Behat\Mink\ElementCode
public function findButton($locator) {
return $this
->find('named', array(
'button',
$locator,
));
}