Module: RAutomation::Adapter::MsUia::ButtonHelper

Included in:
Checkbox, Radio
Defined in:
lib/rautomation/adapter/ms_uia/button_helper.rb

Instance Method Summary collapse

Instance Method Details

#clear

TODO:

call a windows function to do this without clicking



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

def clear
  click {!set?} if set?
end

#set

TODO:

call a windows function to do this without clicking



18
19
20
# File 'lib/rautomation/adapter/ms_uia/button_helper.rb', line 18

def set
  click {set?} unless set?
end

#set?Boolean

todo - replace with UIA version

Returns:

  • (Boolean)


7
8
9
10
# File 'lib/rautomation/adapter/ms_uia/button_helper.rb', line 7

def set?
  control_hwnd = Functions.control_hwnd(@window.hwnd, @locators)
  Functions.control_set? control_hwnd
end