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

Breadcrumb

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

function ExactNamedSelector::__construct

Overrides NamedSelector::__construct

File

vendor/behat/mink/src/Selector/ExactNamedSelector.php, line 18

Class

ExactNamedSelector
Exact match selector engine. Like the Named selector engine but ignores partial matches.

Namespace

Behat\Mink\Selector

Code

public function __construct() {
    $this->registerReplacement('%tagTextMatch%', 'normalize-space(string(.)) = %locator%');
    $this->registerReplacement('%valueMatch%', './@value = %locator%');
    $this->registerReplacement('%titleMatch%', './@title = %locator%');
    $this->registerReplacement('%altMatch%', './@alt = %locator%');
    $this->registerReplacement('%relMatch%', './@rel = %locator%');
    $this->registerReplacement('%labelAttributeMatch%', './@label = %locator%');
    parent::__construct();
}

API Navigation

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