Sha256: 6389f87cd7e7790ad862fc6e0e4de280084d1a4a5e58d2af1beb697c6765b4f5

Contents?: true

Size: 467 Bytes

Versions: 4

Compression:

Stored size: 467 Bytes

Contents

module RAutomation
  module Adapter
    module WinFfi
      class Label < Control
        include WaitHelper
        include Locators

        def value
          Functions.control_value(Functions.control_hwnd(@window.hwnd, @locators))
        end

        def exist?
          @locators[:id].nil? ? super : super && matches_type(Constants::UIA_LABEL_CONTROL_TYPE)
        end

        alias_method :exists?, :exist?

      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rautomation-0.6.3 lib/rautomation/adapter/win_ffi/label.rb
rautomation-0.6.2 lib/rautomation/adapter/win_ffi/label.rb
rautomation-0.6.1 lib/rautomation/adapter/win_ffi/label.rb
rautomation-0.6.0 lib/rautomation/adapter/win_ffi/label.rb