question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

bug: Custom Appium Home location is not a recognized argument

See original GitHub issue

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

I want to install the Appium Drivers in a path, that is accessible to all users instead of only the current user. I am referring to the reading material provided here (from Appium’s Github reference): https://appiumpro.com/editions/122-installing-appium-20-and-the-driver-and-plugins-cli When I perform any of these commands in PowerShell:

appium -ah C:\Programs\npm driver install windows
appium -ah "C:\Programs\npm" driver install windows
appium --home "C:\Programs\npm" driver install windows
appium --appium-home "C:\Programs\npm" driver install windows
appium --home="C:\Programs\npm" driver install windows

I get an error of the argument not being recognized. See screenshot below:

image

Expected Behavior

Appium Drivers install in a custom location alongside where Appium 2 via NPM was installed at E.G. Appium is installed in “C:\Programs\npm” and i expect the Appium Drivers to be installed there as well.

Minimal Reproducible Example

All I did was the following through PowerShell with Administrator privileges:

npm i -g appium@next --prefix="C:\Programs\npm"

And then the Appium commands listed above in the ‘current behavior’ section.

Environment

  • Operating system: Windows 10 Enterprise
  • If running via appium CLI…
    • Appium CLI version (output of appium --version): 2.0.0-beta.46
    • Node.js version (output of node --version): v18.12.1
    • npm version (output of npm --version): 8.19.2
    • Last appium version which did not exhibit the problem: N/A
  • If running Appium Desktop, its version: N/A
  • Appium driver(s) and their version(s): 8.7.3
  • Appium plugin(s) and their version(s): N/A
  • Platform and version under test: Windows 10 Enterprise
  • Real device or emulator/simulator: N/A

Link to Appium Logs

No response

Futher Information

I want to also install the “uiautomator2” driver in that specific location but I have not tried it yet.

Issue Analytics

  • State:closed
  • Created 9 months ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
mykola-mokhnachcommented, Dec 13, 2022

I assume this command line argument has been removed. Have you tried to set the APPIUM_HOME environment variable instead?

0reactions
mykola-mokhnachcommented, Dec 20, 2022

Closed because of no response

Read more comments on GitHub >

github_iconTop Results From Across the Web

Troubleshooting - Appium
Make sure the app is compiled for the simulator (or real device) as appropriate (e.g., in debug mode for the simulator), or you...
Read more >
CLI Arguments - Appium
Flag Default Description ‑‑shell null Enter REPL mode ‑‑ipa null (IOS‑only) abs path to compiled .ipa file ‑a , ‑‑address 0.0.0.0 IP Address to listen on...
Read more >
Appium Is not working after xcode11 update - Issues/Bugs
Good Day, I updated xcode to 11 from 10 and after that i faced a strange issue, i searched for a lot of...
Read more >
Throwing error ANDROID_HOME is not set - Appium Discuss
Hello @Pac_Chan , from your logs, it can correctly get the path you have set in your bash_profile, but it says it is...
Read more >
Touch Actions - Appium
An unfortunate bug exists in the iOS 7.0 - 8.x Simulators where ScrollViews, CollectionViews, and TableViews don't recognize gestures initiated by UIAutomation ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found