Skip to content

Commit 00312b9

Browse files
committed
Refs #91 - restore anchor to regex
1 parent c850efc commit 00312b9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/WebDriver/Element.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,6 @@ public function getID()
119119
*/
120120
protected function getElementPath($elementId)
121121
{
122-
return preg_replace('/' . preg_quote($this->id, '/') . '/', $elementId, $this->url);
122+
return preg_replace('/' . preg_quote($this->id, '/') . '$/', $elementId, $this->url);
123123
}
124124
}

0 commit comments

Comments
 (0)