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

Breadcrumb

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

function Selenium2Driver::clickOnElement

4 calls to Selenium2Driver::clickOnElement()
Selenium2Driver::check in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Checks checkbox by its XPath query.
Selenium2Driver::click in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Clicks button or link located by its XPath query.
Selenium2Driver::setValue in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Sets element's value by its XPath query.
Selenium2Driver::uncheck in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Unchecks checkbox by its XPath query.

File

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

Class

Selenium2Driver
Selenium2 driver.

Namespace

Behat\Mink\Driver

Code

private function clickOnElement(Element $element) : void {
    // Move the mouse to the element as Selenium does not allow clicking on an element which is outside the viewport
    $this->doMouseOver($element);
    $element->click();
}

API Navigation

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