Sha256: 63f456b771ae17f9fc0d8cd9fdda720a525499dbac00e92ec0780987772c319f
Contents?: true
Size: 731 Bytes
Versions: 5
Compression:
Stored size: 731 Bytes
Contents
module RAutomation module Adapter module Autoit # @private module Locators private def extract(locators) locators = self.class::DEFAULT_LOCATORS.merge(locators) if self.class.const_defined?(:DEFAULT_LOCATORS) @locators = locators @autoit_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
5 entries across 5 versions & 1 rubygems