def assert_text_field_value(textfield_name, text)
			if RWebSpec.framework == "Watir"				
      	perform_assertion { assert_equal(text, text_field(:name, textfield_name).value) }
			else
				the_element = @web_browser.driver.find_element(:name, textfield_name)
      	perform_assertion { assert_equal(text, element_value(the_element)) }
			end			
    end
def assert_text_field_value(textfield_name, text)
			if RWebSpec.framework == "Watir"				
      	perform_assertion { assert_equal(text, text_field(:name, textfield_name).value) }
			else
				the_element = @web_browser.driver.find_element(:name, textfield_name)
      	perform_assertion { assert_equal(text, element_value(the_element)) }
			end			
    end
Assert a text field (with given name) has the value

 <input id="tid" name="text1" value="text already there" type="text">

 assert_text_field_value("text1", "text already there") => true