Sha256: 0b2b1a0a087373d870ec0943ff07d9f05eefa2f65dd4e7579097a162b6e5297d

Contents?: true

Size: 1.09 KB

Versions: 3

Compression:

Stored size: 1.09 KB

Contents

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

module TestaAppiumDriver
  class Driver
    include TypeSelectors


    private
    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

3 entries across 3 versions & 1 rubygems

Version Path
testa_appium_driver-0.1.6 lib/testa_appium_driver/ios/driver.rb
testa_appium_driver-0.1.5 lib/testa_appium_driver/ios/driver.rb
testa_appium_driver-0.1.4 lib/testa_appium_driver/ios/driver.rb