Sha256: 07e24061c83f03d9965f27ccb17b2a298dde53c9666136b6291e41a5c8f354ac

Contents?: true

Size: 1.08 KB

Versions: 4

Compression:

Stored size: 1.08 KB

Contents

require_relative 'type_selectors'
require_relative 'locator'
require_relative 'selenium_element'

module TestaAppiumDriver
  class Driver
    include TypeSelectors


    def handle_testa_opts
      if @testa_opts[:default_find_strategy].nil?
        @default_find_strategy = DEFAULT_IOS_FIND_STRATEGY
      else
        case @testa_opts[:default_find_strategy].to_sym
        when FIND_STRATEGY_XPATH
          @default_find_strategy = @testa_opts[:default_find_strategy].to_sym
        else
          raise "Default find strategy #{@testa_opts[:default_find_strategy]} not supported for iOS"
        end
      end


      if @testa_opts[:default_scroll_strategy].nil?
        @default_scroll_strategy = DEFAULT_IOS_SCROLL_STRATEGY
      else
        case @testa_opts[:default_scroll_strategy].to_sym
        when SCROLL_STRATEGY_W3C
          @default_scroll_strategy = @testa_opts[:default_scroll_strategy].to_sym
        else
          raise "Default scroll strategy #{@testa_opts[:default_scroll_strategy]} not supported for iOS"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
testa_appium_driver-0.1.3 lib/testa_appium_driver/ios/driver.rb
testa_appium_driver-0.1.2 lib/testa_appium_driver/ios/driver.rb
testa_appium_driver-0.1.1 lib/testa_appium_driver/ios/driver.rb
testa_appium_driver-0.1.0 lib/testa_appium_driver/ios/driver.rb