Sha256: 333b452200f5b815561c2300d72e5640c9837ad24284915914ab827942600abf
Contents?: true
Size: 699 Bytes
Versions: 3
Compression:
Stored size: 699 Bytes
Contents
module RAutomation module Adapter module MsUia class Checkbox < Control include WaitHelper include Locators include ButtonHelper def value hwnd = Functions.control_hwnd(@window.hwnd, @locators) checkbox = UiaDll::element_from_handle(hwnd) checkbox_value = FFI::MemoryPointer.new :char, UiaDll::get_name(checkbox, nil) + 1 UiaDll::get_name(checkbox, checkbox_value) checkbox_value.read_string end def exist? super && matches_type?(Constants::UIA_CHECKBOX_CONTROL_TYPE) end alias_method :exists?, :exist? end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rautomation-0.7.2 | lib/rautomation/adapter/ms_uia/checkbox.rb |
rautomation-0.7.1 | lib/rautomation/adapter/ms_uia/checkbox.rb |
rautomation-0.7.0 | lib/rautomation/adapter/ms_uia/checkbox.rb |