How to type a text in new line inside the text area using Selenium Webdriver?

How to type a text in new line inside the text area using Selenium Webdriver?

Hi Tom Dale,

To type a text in a new line using Selenium Webdriver, use the below capabilities:

WebElement webelement = driver.findElement(By.id("cke_1_contents"));

webelement.sendKeys(“This is line one.\n This is line two.”);