src/ElementResolver.php
public function resolveForTyping($field)
    {
        if (! is_null($element = $this->findById($field))) {
            return $element;
        }

        return $this->firstOrFail([
            $field, "input[name='{$field}']", "textarea[name='{$field}']",
        ]);
    }
public function resolveForTyping($field)
    {
        if (! is_null($element = $this->findById($field))) {
            return $element;
        }

        return $this->firstOrFail([
            $field, "input[name='{$field}']", "textarea[name='{$field}']",
        ]);
    }
public function resolveForTyping ( $ field ) { if ( ! is_null ( $ element = $ this -> findById ( $ field ) ) ) { return $ element ; } return $ this -> firstOrFail ( [ $ field , "input[name='{$field}']" , "textarea[name='{$field}']" , ] ) ; }
Resolve the element for a given input "field".

@param  string  $field
@return \Facebook\WebDriver\Remote\RemoteWebElement
@throws \Exception
Resolve the element for a given input field .