Skip to content

Commit 28b331e

Browse files
committed
Refs #91 - restore anchor to regex
1 parent 5f586eb commit 28b331e

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
@@ -130,6 +130,6 @@ public function getID()
130130
*/
131131
protected function getElementPath($elementId)
132132
{
133-
return preg_replace('/' . preg_quote($this->id, '/') . '/', $elementId, $this->url);
133+
return preg_replace('/' . preg_quote($this->id, '/') . '$/', $elementId, $this->url);
134134
}
135135
}

0 commit comments

Comments
 (0)