Class: RFormSpec::RadioButton

Inherits:
BaseControl show all
Defined in:
lib/rformspec/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, #key_press, #mouse_click, #mouse_move, #open_file_dialog, #try_for, #wait_and_focus_window, #wait_for_window, #window_exists?

Methods included from TestWisePlugin

#connect_to_testwise, #debug, #dump_caller_stack, #notify_screenshot_location, #operation_delay

Constructor Details

This class inherits a constructor from RFormSpec::BaseControl

Instance Method Details

#checkObject



70
71
72
# File 'lib/rformspec/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/rformspec/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/rformspec/control.rb', line 74

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