Skip to content

bug: unable to create a driver without the app capability #1038

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
1 of 3 tasks
eglitise opened this issue Aug 6, 2024 · 3 comments · Fixed by #1039
Closed
1 of 3 tasks

bug: unable to create a driver without the app capability #1038

eglitise opened this issue Aug 6, 2024 · 3 comments · Fixed by #1039

Comments

@eglitise
Copy link

eglitise commented Aug 6, 2024

This is a

  • Bug report
  • Question
  • Freature Request

Summary

When creating a driver by passing a capability set without the app capability, the driver fails to be created and returns an error:

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.

Environment

  • Appium version (or git revision): 2.11.2
  • ruby_lib version: 15.2.1
  • Mobile platform/version/device under test: Android/iOS

Actual behaviour and steps to reproduce

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.

Expected behaviour

Driver is created fine

Link to Appium/Ruby logs

N/A

Any additional comments

N/A

@KazuCocoa
Copy link
Member

Yes, it looks like ruby_lib's historical place reason. Let me fix that.

@KazuCocoa
Copy link
Member

Could you try out with 15.2.2?

@eglitise
Copy link
Author

eglitise commented Aug 6, 2024

Working fine now, thanks 👌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants