Method: AutoItHelper.set_field
- Defined in:
- lib/watirspec/autoit.rb
.set_field(window_title, field_name, field_value) ⇒ Object
sets specified field’s value on window with specified title, activates window automatically and makes sure that the field’s value got changed
25 26 27 28 29 30 31 32 |
# File 'lib/watirspec/autoit.rb', line 25 def set_field(window_title, field_name, field_value) wait_until! do activate_window(window_title) && @@autoit.ControlFocus(window_title, "", field_name) == 1 && @@autoit.ControlSetText(window_title, "", field_name, field_value) == 1 && @@autoit.ControlGetText(window_title, "", field_name) == field_value end end |