Module: RAutomation::Adapter::MsUia::ButtonHelper
Instance Method Summary collapse
- #clear
- #set
-
#set? ⇒ Boolean
todo - replace with UIA version.
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
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 |