Closed eglitise closed 3 months ago
When creating a driver by passing a capability set without the app capability, the driver fails to be created and returns an error:
app
absolute_app_path invoked and app is not set! (ArgumentError)
Could not reproduce this using ruby_lib 15.2.0 and identical versions of ruby_lib_core. I believe the issue was likely introduced in #1037.
ruby_lib
15.2.0
ruby_lib_core
Create a driver and pass a capability set that does NOT contain the app capability, e.g.
url = "http://localhost:4723/" caps = {"platformName"=>"iOS", "appium:options"=>{"automationName"=>"XCUITest", "deviceName"=>"iPhone", "udid"=>"<udid>", "noReset"=>true, "forceAppLaunch"=>true, "bundleId"=>"<bundle id>"}} $driver = Appium::Driver.new({ caps: caps, appium_lib: { server_url: url } })
This returns an error.
Driver is created fine
N/A
Yes, it looks like ruby_lib's historical place reason. Let me fix that.
Could you try out with 15.2.2?
Working fine now, thanks 👌
This is a
Summary
When creating a driver by passing a capability set without the
app
capability, the driver fails to be created and returns an error:Could not reproduce this using
ruby_lib
15.2.0
and identical versions ofruby_lib_core
. I believe the issue was likely introduced in #1037.Environment
ruby_lib
version: 15.2.1Actual behaviour and steps to reproduce
Create a driver and pass a capability set that does NOT contain the
app
capability, e.g.This returns an error.
Expected behaviour
Driver is created fine
Link to Appium/Ruby logs
N/A
Any additional comments
N/A