You are here

private function BrowserKitDriver::canResetForm in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::canResetForm()

Determines if a node can reset a form.

Parameters

\DOMElement $node Node.:

Return value

boolean

1 call to BrowserKitDriver::canResetForm()
BrowserKitDriver::click in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Clicks button or link located by it's XPath query.

File

vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php, line 733

Class

BrowserKitDriver
Symfony2 BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

private function canResetForm(\DOMElement $node) {
  $type = $node
    ->hasAttribute('type') ? $node
    ->getAttribute('type') : null;
  return in_array($node->nodeName, array(
    'input',
    'button',
  ), true) && 'reset' === $type;
}