public function PageContentTrait::getOuterHtml 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::getOuterHtml()
Gets the outer html of a given xpath
Parameters
string $xpath:
Return value
string
Throws
File
- vendor/
jcalderonzumba/ mink-phantomjs-driver/ src/ PageContentTrait.php, line 53
Class
- PageContentTrait
- Class PageContentTrait @package Zumba\Mink\Driver
Namespace
Zumba\Mink\DriverCode
public function getOuterHtml($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], "outer");
}