public function buttonExists($button, TraversableElement
$container = NULL
) { $container =
$container ?:
$this->session->
getPage();
$node =
$container->
findButton($button);
if ($node === NULL
) { throw new ElementNotFoundException($this->session->
getDriver(), 'button', 'id|name|label|value',
$button);
} return $node;
} /**
* Checks that the specific button does NOT exist on the current page.
*
* @param string $button
* One of id|name|label|value for the button.
* @param \Behat\Mink\Element\TraversableElement $container
* (optional) The document to check against. Defaults to the current page.
*
* @throws \Behat\Mink\Exception\ExpectationException
* When the button exists.
*/