Sha256: 6162b3cf049a5886a2e02ece6b5bc618ce1beed21a41b4f900bbfcc97a24660f

Contents?: true

Size: 565 Bytes

Versions: 1

Compression:

Stored size: 565 Bytes

Contents

module RAutomation
  module Adapter
    module Autoit
      module Locators

        private

        def extract(locators) #:nodoc:
          @locators = "[#{locators.map do |locator, value|
            locator_key = self.class::LOCATORS[locator] || self.class::LOCATORS[[locator, value.class]]
            value = value.to_i + 1 if locator == :index # use 0-based indexing
            value = value.to_s(16) if locator == :hwnd
            "#{(locator_key || locator)}:#{value}"
          end.join(";")}]"
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rautomation-0.1.0 lib/rautomation/adapter/autoit/locators.rb