Sha256: ff7710df0cee670eb9bf00da299a1cdd9440830e702730ede07685c1f1a88bf4

Contents?: true

Size: 586 Bytes

Versions: 6

Compression:

Stored size: 586 Bytes

Contents

module RAutomation
  module Adapter
    module MsUia
      module ButtonHelper

        #todo - replace with UIA version
        def set?
          control_hwnd = Functions.control_hwnd(@window.hwnd, @locators)
          Functions.control_set? control_hwnd
        end

        # @todo call a windows function to do this without clicking
        def clear
          click {!set?} if set?
        end

        # @todo call a windows function to do this without clicking
        def set
          click {set?} unless set?
        end

      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rautomation-0.9.0 lib/rautomation/adapter/ms_uia/button_helper.rb
rautomation-0.8.0 lib/rautomation/adapter/ms_uia/button_helper.rb
rautomation-0.7.3 lib/rautomation/adapter/ms_uia/button_helper.rb
rautomation-0.7.2 lib/rautomation/adapter/ms_uia/button_helper.rb
rautomation-0.7.1 lib/rautomation/adapter/ms_uia/button_helper.rb
rautomation-0.7.0 lib/rautomation/adapter/ms_uia/button_helper.rb