Sha256: 108842e61ddb9df0943480fe05237695d30af00e986e4843ee4206cc35fc0368

Contents?: true

Size: 493 Bytes

Versions: 4

Compression:

Stored size: 493 Bytes

Contents

module RAutomation
  module Implementations
    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_s(16) if locator == :hwnd
            "#{(locator_key || locator)}:#{value}"
          end.join(";")}]"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rautomation-0.0.4 lib/rautomation/implementations/autoit/locators.rb
rautomation-0.0.3 lib/rautomation/implementations/autoit/locators.rb
rautomation-0.0.2 lib/rautomation/implementations/autoit/locators.rb
rautomation-0.0.1 lib/rautomation/implementations/autoit/locators.rb