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

Breadcrumb

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

function Selenium2Driver::findElement

Parameters

string $xpath:

Return value

Element

Throws

DriverException

13 calls to Selenium2Driver::findElement()
Selenium2Driver::attachFile in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Attaches file path to file field located by its XPath query.
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::dragTo in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Drag one element onto another.
Selenium2Driver::executeJsOnXpath in vendor/lullabot/mink-selenium2-driver/src/Selenium2Driver.php
Executes JS on a given element - pass in a js script string and {{ELEMENT}} will be replaced with a reference to the result of the $xpath query

... See full list

File

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

Class

Selenium2Driver
Selenium2 driver.

Namespace

Behat\Mink\Driver

Code

private function findElement(string $xpath) : Element {
    return $this->getWebDriverSession()
        ->element('xpath', $xpath);
}

API Navigation

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