diff --git a/CHANGELOG.md b/CHANGELOG.md index 06440f12..77ea8c85 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,6 +3,9 @@ Commit based release not is [release_notes.md](./release_notes.md) Release tags are https://github.com/appium/ruby_lib/releases . +## not released +- Fix non `app` capability behavior + ## 15.2.1 - 2024-08-03 - Fix client side timeout in the default http client - Bump appium_lib_core 9.2.1+ to apply the fix diff --git a/lib/appium_lib/driver.rb b/lib/appium_lib/driver.rb index 63b5b722..41892848 100644 --- a/lib/appium_lib/driver.rb +++ b/lib/appium_lib/driver.rb @@ -269,9 +269,9 @@ def set_app_path(opts) # return the path exists on the local app_path = Driver.get_cap(@core.caps, 'app') - return if !app_path.nil? && File.exist?(app_path) + return if app_path.nil? + return if File.exist?(app_path) - # The app file is not exact path @core.caps['app'] = self.class.absolute_app_path opts end