Class: RFormUnit::RadioButton

Inherits:
BaseControl show all
Defined in:
lib/rformunit/control.rb

Instance Attribute Summary

Attributes inherited from BaseControl

#control_id, #parent_win

Instance Method Summary collapse

Methods inherited from BaseControl

#click, #focus, #get_text, #initialize, #is_enabled?, #is_visible?, #send_text, #set_text

Methods included from Driver

#close_window, #driver, #focus_window, #init, #key_press, #open_file_dialog, #set_autoit_option, #wait_and_focus_window, #wait_for_window, #window_exists?

Constructor Details

This class inherits a constructor from RFormUnit::BaseControl

Instance Method Details

#checkObject



70
71
72
# File 'lib/rformunit/control.rb', line 70

def check
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "Check" ,"")
end

#is_checked?Boolean

Returns:

  • (Boolean)


78
79
80
# File 'lib/rformunit/control.rb', line 78

def is_checked?
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "IsChecked" ,"") == 1
end

#uncheckObject



74
75
76
# File 'lib/rformunit/control.rb', line 74

def uncheck
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "UnCheck" ,"")
end