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

Breadcrumb

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

function PartialNamedSelector::__construct

Overrides NamedSelector::__construct

File

vendor/behat/mink/src/Selector/PartialNamedSelector.php, line 20

Class

PartialNamedSelector
Named selectors engine. Uses registered XPath selectors to create new expressions.

Namespace

Behat\Mink\Selector

Code

public function __construct() {
    $this->registerReplacement('%tagTextMatch%', 'contains(normalize-space(string(.)), %locator%)');
    $this->registerReplacement('%valueMatch%', 'contains(./@value, %locator%)');
    $this->registerReplacement('%titleMatch%', 'contains(./@title, %locator%)');
    $this->registerReplacement('%altMatch%', 'contains(./@alt, %locator%)');
    $this->registerReplacement('%relMatch%', 'contains(./@rel, %locator%)');
    $this->registerReplacement('%labelAttributeMatch%', 'contains(./@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