src/Concerns/MakesAssertions.php
public function inputValue($field)
    {
        $element = $this->resolver->resolveForTyping($field);

        return in_array($element->getTagName(), ['input', 'textarea'])
                        ? $element->getAttribute('value')
                        : $element->getText();
    }
public function inputValue($field)
    {
        $element = $this->resolver->resolveForTyping($field);

        return in_array($element->getTagName(), ['input', 'textarea'])
                        ? $element->getAttribute('value')
                        : $element->getText();
    }
public function inputValue ( $ field ) { $ element = $ this -> resolver -> resolveForTyping ( $ field ) ; return in_array ( $ element -> getTagName ( ) , [ 'input' , 'textarea' ] ) ? $ element -> getAttribute ( 'value' ) : $ element -> getText ( ) ; }
Get the value of the given input or text area field.

@param  string  $field
@return string
Get the value of the given input or text area field .