I need selenium and python to do the key combo Shift + Enter, so that it inserts a new line without sending a message (\n
sends the message), and with this code it doesn't produce an error, but it also doesn't create a new line. message_box
variable is already defined and the messages there do show up.
Code trials:
action = ActionChains(driver)
message_box.send_keys("test1")
action.key_down(Keys.SHIFT)
action.send_keys(Keys.RETURN)
action.key_up(Keys.SHIFT)
message_box.send_keys("test2")