コード例 #1
0
ファイル: ExactNamedSelector.php プロジェクト: ddrozdik/dmaps
 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();
 }
コード例 #2
0
 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();
 }