public function PageContentTrait::getHtml in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/jcalderonzumba/mink-phantomjs-driver/src/PageContentTrait.php \Zumba\Mink\Driver\PageContentTrait::getHtml()
Returns the inner html of a given xpath
Parameters
string $xpath:
Return value
string
Throws
File
- vendor/
jcalderonzumba/ mink-phantomjs-driver/ src/ PageContentTrait.php, line 41
Class
- PageContentTrait
- Class PageContentTrait @package Zumba\Mink\Driver
Namespace
Zumba\Mink\DriverCode
public function getHtml($xpath) {
$elements = $this
->findElement($xpath, 1);
//allText works only with ONE element so it will be the first one
return $this->browser
->allHtml($elements["page_id"], $elements["ids"][0], "inner");
}