You are here

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

Checks whether element has a button (input[type=submit|image|button|reset], button) with specified locator.

Parameters

string $locator button id, value or alt:

Return value

Boolean

File

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

Class

TraversableElement
Traversable element.

Namespace

Behat\Mink\Element

Code

public function hasButton($locator) {
  return null !== $this
    ->findButton($locator);
}