Module: RAutomation::Adapter::WinFfi::ButtonHelper

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

Instance Method Summary collapse

Instance Method Details

#clear

TODO:

call a windows function to do this without clicking



12
13
14
# File 'lib/rautomation/adapter/win_ffi/button_helper.rb', line 12

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

#set

TODO:

call a windows function to do this without clicking



17
18
19
# File 'lib/rautomation/adapter/win_ffi/button_helper.rb', line 17

def set
  click {set?} unless set?
end

#set?Boolean

Returns:

  • (Boolean)


6
7
8
9
# File 'lib/rautomation/adapter/win_ffi/button_helper.rb', line 6

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