You are here

public function Element::getText in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/behat/mink/src/Element/Element.php \Behat\Mink\Element\Element::getText()

Returns element text (inside tag).

Return value

string

Overrides ElementInterface::getText

File

vendor/behat/mink/src/Element/Element.php, line 174

Class

Element
Base element.

Namespace

Behat\Mink\Element

Code

public function getText() {
  return $this
    ->getDriver()
    ->getText($this
    ->getXpath());
}