4 * This file is part of the Mink package.
5 * (c) Konstantin Kudryashov <ever.zet@gmail.com>
7 * For the full copyright and license information, please view the LICENSE
8 * file that was distributed with this source code.
11 namespace Behat\Mink\Element;
16 * @author Konstantin Kudryashov <ever.zet@gmail.com>
18 class DocumentElement extends TraversableElement
21 * Returns XPath for handled element.
25 public function getXpath()
31 * Returns document content.
35 public function getContent()
37 return trim($this->getDriver()->getContent());
41 * Check whether document has specified content.
43 * @param string $content
47 public function hasContent($content)
49 return $this->has('named', array('content', $content));