public function BrowserKitDriver::getHtml in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php \Behat\Mink\Driver\BrowserKitDriver::getHtml()
Returns element's inner 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::getHtml
File
- vendor/
behat/ mink-browserkit-driver/ src/ BrowserKitDriver.php, line 357
Class
- BrowserKitDriver
- Symfony2 BrowserKit driver.
Namespace
Behat\Mink\DriverCode
public function getHtml($xpath) {
// cut the tag itself (making innerHTML out of outerHTML)
return preg_replace('/^\\<[^\\>]+\\>|\\<[^\\>]+\\>$/', '', $this
->getOuterHtml($xpath));
}