You are here

class ExactNamedSelector in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/behat/mink/src/Selector/ExactNamedSelector.php \Behat\Mink\Selector\ExactNamedSelector

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

Hierarchy

Expanded class hierarchy of ExactNamedSelector

1 file declares its use of ExactNamedSelector
ExactNamedSelectorTest.php in vendor/behat/mink/tests/Selector/ExactNamedSelectorTest.php

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

Namesort descending Modifiers Type Description Overrides
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 protected function Registers a replacement in the list of replacements.
NamedSelector::translateToXPath public function Translates provided locator into XPath. Overrides SelectorInterface::translateToXPath