Clearing a text field 04/03/2013
# Clearing the value of a text field with a specific ID
browser.text_field(id: 'text_field_with_a_value').clear

In addition to setting the value of a text field, it can also be cleared. Clearing the field can be done with the .clear method.