Is it possible to send multi-line text messages in WhatsApp using Python?

Here is an example of code that I wrote. This only translates to the first line, then leaves the browser.

`import selenium
from the selenium import webdriver
from selenium.webdriver.common.keys import Keys
import time
url = "https://web.whatsapp.com/"
driver = webdriver.Chrome (& c; / users / user / desktop / tcs / chromedriver & # 39;)
driver.get (url)
time.sleep (5)
user = driver.find_element_by_xpath ("// span[@title = '{}']".format (name))
user.click ()
input_msg = driver.find_element_by_xpath ("// div[@class = '_2S1VP copyable- 
 text selectable-text']")
input_msg.click ()
input_msg.send_keys ("This is the first line" + " n" + "This is the second line")
time.sleep (5)
driver.quit () `