Finds and returns the text contents of the given element.
If a fuzzy locator is used, the element is found using CSS, XPath, and by matching the full page source by regular expression.
php
grabTextFrom('h1');
$heading = $I->grabTextFrom('descendant-or-self::h1');
$value = $I->grabTextFrom('~
public grabTextFrom ( $cssOrXPathOrRegex ) : mixed | ||
$cssOrXPathOrRegex | ||
return | mixed |