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

Breadcrumb

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

function NodeElement::keyDown

Pressed down specific keyboard key.

Parameters

string|int $char could be either char ('b') or char-code (98):

KeyModifier::*|null $modifier keyboard modifier (could be 'ctrl', 'alt', 'shift' or 'meta'):

Return value

void

File

vendor/behat/mink/src/Element/NodeElement.php, line 378

Class

NodeElement
Page element node.

Namespace

Behat\Mink\Element

Code

public function keyDown($char, ?string $modifier = null) {
    $this->getDriver()
        ->keyDown($this->getXpath(), $char, $modifier);
}

API Navigation

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