Class: RFormSpec::ComboBox

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

#find_option(option) ⇒ Object



98
99
100
# File 'lib/rformspec/control.rb', line 98

def find_option(option)
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "FindString", option)
end

#hide_dropdownObject



90
91
92
# File 'lib/rformspec/control.rb', line 90

def hide_dropdown
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "HideDropDown" ,"")
end

#select_option(option) ⇒ Object



94
95
96
# File 'lib/rformspec/control.rb', line 94

def select_option(option)
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "SelectString", option)
end

#set_selection(ref) ⇒ Object



102
103
104
# File 'lib/rformspec/control.rb', line 102

def set_selection(ref)
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "SetCurrentSelection", ref)
end

#show_dropdownObject



86
87
88
# File 'lib/rformspec/control.rb', line 86

def show_dropdown
  driver.ControlCommand(@parent_win.title, @parent_win.text, @control_id, "ShowDropDown" ,"")
end