Based on the example, you could use the page-object gem's built in populate_page_with
method. Assuming the text fields are defined in the page object already, then you can do:
example_page.populate_page_with :txt_field_1 => 'John Doe'
Or do multiple fields like:
example_page.populate_page_with :txt_field_1 => 'John Doe', :txt_field_2 => 'Jane Doe'