detro/ghostdriver — pull request #189 by loduis (2013-03-05 20:59:18+00:00)
Title: Fixed sendKeys("\n"), for compatibility with other browser, is an enter key in ghostdriver is a return key

**test.html**
```javascript

Input enter

A

B

C

Only for test

```
**test.rb**

```javascript
require "selenium-webdriver"
# la version de host driver que ejecuto localmente
# desde el repositorio
driver = Selenium::WebDriver.for(:remote, :url => "http://localhost:8910")
#driver = Selenium::WebDriver.for(:phantomjs)
driver.manage.window.resize_to(1286, 682)
#driver = Selenium::WebDriver.for(:chrome)
#driver = Selenium::WebDriver.for(:ie)
#driver = Selenium::WebDriver.for(:ff)

# aqui debes llegar a la pagina html arriba
# yo uso expressjs para montar el servidor
# ya tu sabes esto mas que yo
driver.navigate.to "http://localhost:3000/"

text = driver.find_element(:id, 'text')
text.send_keys("this and test\n")

element = driver.find_element(:id, 'output')
puts element.style('display')

# view select
select = driver.find_element(:id, 'select')
select.send_keys("b\n")

# view textarea

textarea = driver.find_element(:id, 'textarea')
textarea.send_keys("this an part\nthis an new line")

# body
div = driver.find_element(:tag_name, 'body')
div.send_keys("e\n")

driver.quit
```