Codem\DamnFineUploader\_generated\AcceptanceTesterActions::grabTextFrom
[!] Method is generated. Documentation taken from corresponding module.
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 <?php $heading = $I->grabTextFrom('h1'); $heading = $I->grabTextFrom('descendant-or-self::h1'); $value = $I->grabTextFrom('~<input value=(.*?)]~sgi'); // match with a regex ?> ```
Signature
public function grabTextFrom(
$cssOrXPathOrRegex )
Parameters
$cssOrXPathOrRegex
—
Returns
- mixed