Sha256: 11d251be5b7fafe86cd4fb6436fb934a6eda8993a6e0fc01c0a6ecc6133fffcf

Contents?: true

Size: 631 Bytes

Versions: 6

Compression:

Stored size: 631 Bytes

Contents

module RAutomation
  module Adapter
    module MsUia
      class Button < Control
        include WaitHelper
        include Locators

        # Default locators used for searching buttons.
        DEFAULT_LOCATORS = {:class => /button/i}

        #todo - replace with UIA version
        # @see RAutomation::Button#value
        def value
          Functions.control_value(Functions.control_hwnd(@window.hwnd, @locators))
        end

        def exist?
          super && matches_type?(Constants::UIA_BUTTON_CONTROL_TYPE)
        end

        alias_method :exists?, :exist?

      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.rb
rautomation-0.8.0 lib/rautomation/adapter/ms_uia/button.rb
rautomation-0.7.3 lib/rautomation/adapter/ms_uia/button.rb
rautomation-0.7.2 lib/rautomation/adapter/ms_uia/button.rb
rautomation-0.7.1 lib/rautomation/adapter/ms_uia/button.rb
rautomation-0.7.0 lib/rautomation/adapter/ms_uia/button.rb