Sha256: dbb4ff6e9abdbaec05a9882bcbcad73b8d8532721ccfd64478a2ea364846148f
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
module Raider module AppiumHelper def element(opts = {}) return driver.find_element(strategy(opts) => selector(opts)) if opts[os] driver.find_element(opts) end def elements(opts = {}) return driver.find_elements(strategy(opts) => selector(opts)) if opts[os] driver.find_elements(opts) end def os driver.appium_device end private def strategy(opts) opts[os].keys.first end def selector(opts) opts[os][strategy(opts)] end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
ruby_raider-0.4.3 | lib/generators/templates/helpers/appium_helper.tt |