'Writes the given text plus a newline into the connection.
The newline character sequence to use can be [#Configuration|configured]
both globally and per connection basis. The default value is ``CRLF``.
This keyword consumes the written text, until the added newline, from
the output and logs and returns it. The given text itself must not
contain newlines. Use `Write Bare` instead if either of these features
causes a problem.
*Note:* This keyword does not return the possible output of the executed
command. To get the output, one of the `Read ...` `keywords` must be
used. See `Writing and reading` section for more details.
See `Logging` section for more information about log levels.'

def write(self, text, loglevel=None):

    newline = self._get_newline_for(text)
    if (newline in text):
        raise RuntimeError("'Write'    keyword    cannot    be    used    with    strings    containing    newlines.    Use    'Write    Bare'    instead.")
    self.write_bare((text + newline))
    return self.read_until(self._newline, loglevel)
