Class: RAutomation::Adapter::MsUia::Checkbox

Inherits:
Control
  • Object
show all
Includes:
ButtonHelper, Locators, WaitHelper
Defined in:
lib/rautomation/adapter/ms_uia/checkbox.rb

Instance Method Summary collapse

Methods included from ButtonHelper

#clear, #set

Methods inherited from Control

#assert_enabled, #bounding_rectangle, #cached_hwnd, #click, #collapse, #control_class, #control_name, #disabled?, #enabled?, #expand, #focus, #focused?, #get_current_control_type, #help_text, #hwnd, #initialize, #matches_type?, #new_pid, #search_information, #visible?

Constructor Details

This class inherits a constructor from RAutomation::Adapter::MsUia::Control

Instance Method Details

#exist?Boolean Also known as: exists?

Returns:

  • (Boolean)


9
10
11
# File 'lib/rautomation/adapter/ms_uia/checkbox.rb', line 9

def exist?
  super && matches_type?(Constants::UIA_CHECKBOX_CONTROL_TYPE)
end

#set?Boolean

Returns:

  • (Boolean)


13
14
15
# File 'lib/rautomation/adapter/ms_uia/checkbox.rb', line 13

def set?
  UiaDll::is_set(search_information)
end