Skip to content
This repository has been archived by the owner on Nov 9, 2017. It is now read-only.

Commit

Permalink
Fixed the search by id in the driver testsuite
Browse files Browse the repository at this point in the history
Mink 1.x requires escaping the locator before passing it to the named
selector.
  • Loading branch information
stof committed Sep 26, 2014
1 parent 799fbe0 commit 63e4536
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions driver-testsuite/tests/TestCase.php
Expand Up @@ -102,6 +102,8 @@ protected function getAssertSession()
*/
protected function findById($id)
{
$id = $this->getSession()->getSelectorsHandler()->xpathLiteral($id);

return $this->getAssertSession()->elementExists('named', array('id', $id));
}

Expand Down

0 comments on commit 63e4536

Please sign in to comment.