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

Breadcrumb

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

function Selenium2Driver::getAttribute

Overrides CoreDriver::getAttribute

File

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

Class

Selenium2Driver
Selenium2 driver.

Namespace

Behat\Mink\Driver

Code

public function getAttribute(string $xpath, string $name) {
    $script = 'return {{ELEMENT}}.getAttribute(' . json_encode((string) $name) . ')';
    return $this->executeJsOnXpath($xpath, $script);
}

API Navigation

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