I would like to simulate a user pressing shift-enter in a text area. Here is the code I am working with:
var driver = new FirefoxDriver();
driver.Navigate().
Here's how keys.chord() is implemented in JavaScript: https://github.com/SeleniumHQ/selenium/blob/d8ddb4d83972df0f565ef65264bcb733e7a94584/javascript/node/selenium-webdriver/lib/input.js#L135
which is already pretty close to the top accepted answer, I think the only difference is the Null character added to the end. You could probably make a helper method to help you remember it, but unfortunately OpenQA.Selenium.Keys
is a static class and all of it's properties return strings. So if you wanted to do a nice wrapper around it you'd probably also have to wrap the keys class too.