src/ElementResolver.php
/**
     * Resolve the element for a given input "field".
     *
     * @param  string  $field
     * @return \Facebook\WebDriver\Remote\RemoteWebElement
     */
Resolve the element for a given input "field".
Resolve the element for a given input " 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".
Resolve the element for a given input " field " .