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

Commit

Permalink
Implemented getOuterHtml
Browse files Browse the repository at this point in the history
  • Loading branch information
stof committed May 8, 2014
1 parent d6d7325 commit 93b0149
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/Behat/Mink/Driver/SahiDriver.php
Expand Up @@ -283,6 +283,18 @@ public function getHtml($xpath)
}
}

/**
* {@inheritdoc}
*/
public function getOuterHtml($xpath)
{
try {
return $this->client->findByXPath($xpath)->getOuterHTML();
} catch (ConnectionException $e) {
throw new DriverException('An error happened while getting the outer HTML', 0, $e);
}
}

/**
* {@inheritdoc}
*/
Expand Down

0 comments on commit 93b0149

Please sign in to comment.