Method: RWebUnit::Assert#assert_text_field_value
- Defined in:
- lib/rwebunit/assert.rb
#assert_text_field_value(textfield_name, text) ⇒ Object
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
330 331 332 |
# File 'lib/rwebunit/assert.rb', line 330 def assert_text_field_value(textfield_name, text) assert_equal(text, text_field(:name, textfield_name).value) end |