File tree 2 files changed +5
-1
lines changed
2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -3,9 +3,11 @@ module Core
3
3
module Error
4
4
class CoreError < StandardError ; end
5
5
6
+ # Capability related errors
6
7
class NoCapabilityError < CoreError ; end
7
8
class CapabilityStructureError < CoreError ; end
8
9
10
+ # Appium related errors
9
11
class NotSupportedAppiumServer < CoreError ; end
10
12
class NoSuchElementError < CoreError ; end
11
13
Original file line number Diff line number Diff line change @@ -254,7 +254,9 @@ def validate_keys(opts)
254
254
flatten_ops = flatten_hash_keys ( opts )
255
255
256
256
raise Error ::NoCapabilityError unless opts . member? ( :caps )
257
- raise Error ::CapabilityStructureError if !opts . member? ( :appium_lib ) && flatten_ops . member? ( :appium_lib )
257
+ if !opts . member? ( :appium_lib ) && flatten_ops . member? ( :appium_lib )
258
+ raise Error ::CapabilityStructureError , 'Please check the value of appium_lib in the capability'
259
+ end
258
260
259
261
true
260
262
end
You can’t perform that action at this time.
0 commit comments