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

Breadcrumb

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

function Selenium2Driver::trigger

Throws

DriverException

5 calls to Selenium2Driver::trigger()
Selenium2Driver::blur in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Removes focus from element.
Selenium2Driver::focus in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Brings focus to element.
Selenium2Driver::keyDown in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Pressed down specific keyboard key.
Selenium2Driver::keyPress in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Presses specific keyboard key.
Selenium2Driver::keyUp in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Pressed up specific keyboard key.

File

vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php, line 1298

Class

Selenium2Driver
Selenium2 driver.

Namespace

Behat\Mink\Driver

Code

private function trigger(string $xpath, string $event, string $options = '{}') : void {
    $script = 'syn.trigger({{ELEMENT}}, "' . $event . '", ' . $options . ')';
    $this->withSyn()
        ->executeJsOnXpath($xpath, $script);
}

API Navigation

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