Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. BrowserKitDriver.php

function BrowserKitDriver::canResetForm

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

File

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

Class

BrowserKitDriver
Symfony BrowserKit driver.

Namespace

Behat\Mink\Driver

Code

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

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal