Exception: TestaAppiumDriver::StrategyMixException
- Inherits:
-
Exception
- Object
- Exception
- TestaAppiumDriver::StrategyMixException
- Defined in:
- lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb
Instance Method Summary collapse
-
#initialize(strategy, strategy_reason, mixed_strategy, mixed_reason) ⇒ StrategyMixException
constructor
A new instance of StrategyMixException.
Constructor Details
#initialize(strategy, strategy_reason, mixed_strategy, mixed_reason) ⇒ StrategyMixException
Returns a new instance of StrategyMixException.
5 6 7 8 9 10 |
# File 'lib/testa_appium_driver/common/exceptions/strategy_mix_exception.rb', line 5 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 |