lib/Remote/RemoteWebElement.php
public function sendKeys($value)
    {
        $local_file = $this->fileDetector->getLocalFile($value);
        if ($local_file === null) {
            $params = [
                'value' => WebDriverKeys::encode($value),
                ':id' => $this->id,
            ];
            $this->executor->execute(DriverCommand::SEND_KEYS_TO_ELEMENT, $params);
        } else {
            $remote_path = $this->upload($local_file);
            $params = [
                'value' => WebDriverKeys::encode($remote_path),
                ':id' => $this->id,
            ];
            $this->executor->execute(DriverCommand::SEND_KEYS_TO_ELEMENT, $params);
        }

        return $this;
    }
public function sendKeys($value)
    {
        $local_file = $this->fileDetector->getLocalFile($value);
        if ($local_file === null) {
            $params = [
                'value' => WebDriverKeys::encode($value),
                ':id' => $this->id,
            ];
            $this->executor->execute(DriverCommand::SEND_KEYS_TO_ELEMENT, $params);
        } else {
            $remote_path = $this->upload($local_file);
            $params = [
                'value' => WebDriverKeys::encode($remote_path),
                ':id' => $this->id,
            ];
            $this->executor->execute(DriverCommand::SEND_KEYS_TO_ELEMENT, $params);
        }

        return $this;
    }
public function sendKeys ( $ value ) { $ local_file = $ this -> fileDetector -> getLocalFile ( $ value ) ; if ( $ local_file === null ) { $ params = [ 'value' => WebDriverKeys :: encode ( $ value ) , ':id' => $ this -> id , ] ; $ this -> executor -> execute ( DriverCommand :: SEND_KEYS_TO_ELEMENT , $ params ) ; } else { $ remote_path = $ this -> upload ( $ local_file ) ; $ params = [ 'value' => WebDriverKeys :: encode ( $ remote_path ) , ':id' => $ this -> id , ] ; $ this -> executor -> execute ( DriverCommand :: SEND_KEYS_TO_ELEMENT , $ params ) ; } return $ this ; }
Simulate typing into an element, which may set its value.

@param mixed $value The data to be typed.
@return RemoteWebElement The current instance.
Simulate typing into an element which may set its value .