Sha256: 5ed6e523d96880f7e56496e3696267341f8b3bccb6b135cbbbaeb5ec4e25457e

Contents?: true

Size: 561 Bytes

Versions: 12

Compression:

Stored size: 561 Bytes

Contents

# frozen_string_literal: true

module TestaAppiumDriver
  class StrategyMixException < Exception
    def initialize(strategy, strategy_reason, mixed_strategy, mixed_reason)

      # example: parent is only available in xpath strategy and cannot be used with from_element which is only available in uiautomator strategy
      msg = "strategy mix exception: '#{strategy_reason}' is only available in #{strategy} strategy and cannot be used with '#{mixed_reason}' which is only available in #{mixed_strategy} strategy"
      super(msg)
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
testa_appium_driver-0.1.11 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.10 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.9 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.8 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.7 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.6 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.5 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.4 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.3 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.2 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.1 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
testa_appium_driver-0.1.0 lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb