public function BrowserKitDriver::getOuterHtml in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getOuterHtml()
Returns element's outer html by it's XPath query.
Parameters
string $xpath:
Return value
string
Throws
UnsupportedDriverActionException When operation not supported by the driver
DriverException When the operation cannot be done
Overrides CoreDriver::getOuterHtml
1 call to BrowserKitDriver::getOuterHtml()
- BrowserKitDriver::getHtml in vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php - Returns element's inner html by it's XPath query.
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 366
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
public function getOuterHtml($xpath) {
$node = $this
->getCrawlerNode($this
->getFilteredCrawler($xpath));
return $node->ownerDocument
->saveHTML($node);
}