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

Breadcrumb

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

class ExactNamedSelector

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

Hierarchy

  • class \Behat\Mink\Selector\NamedSelector implements \Behat\Mink\Selector\SelectorInterface
    • class \Behat\Mink\Selector\ExactNamedSelector extends \Behat\Mink\Selector\NamedSelector

Expanded class hierarchy of ExactNamedSelector

File

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

Namespace

Behat\Mink\Selector
View source
class ExactNamedSelector extends NamedSelector {
    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();
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title
ExactNamedSelector::__construct public function Creates selector instance. Overrides NamedSelector::__construct
NamedSelector::$replacements private property
NamedSelector::$selectors private property
NamedSelector::$xpathEscaper private property
NamedSelector::escapeLocator private function
NamedSelector::registerNamedXpath public function Registers new XPath selector with specified name.
NamedSelector::registerReplacement public function Register a string replacement used to reduce duplication and increase readability in a Named XPath selector.
NamedSelector::translateToXPath public function Translates provided locator into XPath. Overrides SelectorInterface::translateToXPath

API Navigation

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