I am using Python 3 with selenium.
Let's assume var = "whatever\nelse"
My problem is that when I use elem.send_keys(var) it sends the form after "whatever" (because of the newline)
How may I replace "whatever\nelse" with whatever + SHIFT+ENTER + else?
Or is there any other way to input newlines without actually using javascript or substituting newlines with the newline keystroke?
Note: elem is a contenteditable div.