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(); }
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(); }