Skip to content

Commit b741383

Browse files
authored
fix: non-app capability handling (#1039)
* fix: skip absolute_app_path for non-app * update changelog * tweak the order
1 parent 9b95da5 commit b741383

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ Commit based release not is [release_notes.md](./release_notes.md)
33

44
Release tags are https://github.com/appium/ruby_lib/releases .
55

6+
## not released
7+
- Fix non `app` capability behavior
8+
69
## 15.2.1 - 2024-08-03
710
- Fix client side timeout in the default http client
811
- Bump appium_lib_core 9.2.1+ to apply the fix

lib/appium_lib/driver.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -269,9 +269,9 @@ def set_app_path(opts)
269269

270270
# return the path exists on the local
271271
app_path = Driver.get_cap(@core.caps, 'app')
272-
return if !app_path.nil? && File.exist?(app_path)
272+
return if app_path.nil?
273+
return if File.exist?(app_path)
273274

274-
# The app file is not exact path
275275
@core.caps['app'] = self.class.absolute_app_path opts
276276
end
277277

0 commit comments

Comments
 (0)