Appium directory is invalid: Cannot find appium executable

Hey Chris,
I use Mac and I face the same issuse, please tell me how to solve it
Thank you so much

1 Like

For mac
I installed appium by npm and set it in kotalon with this path and it worked:
/usr/local/lib/node_modules/appium

3 Likes

This worked for me as I have installed the appium using npm

this works for meā€¦ thank you!

Just Run this in the command prompt

npm install -g appium

Am facing same issue, I have used appium desktop application, Please help me on this, how to configure the appium into Katalon Studio.

I couldnā€™t find the appium details in below 2 locations.

Here only i can able to see the appium details

Please see the error

java.util.concurrent.ExecutionException: com.kms.katalon.core.appium.exception.AppiumStartException: Appium directory is invalid: Cannot find appium executable file.
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:49)
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12.run(MobileLocalAppComposite.java:474)
at org.eclipse.jface.operation.ModalContext$ModalContextThread.run(ModalContext.java:122)
Caused by: com.kms.katalon.core.appium.exception.AppiumStartException: Appium directory is invalid: Cannot find appium executable file.
at com.kms.katalon.core.appium.driver.AppiumDriverManager.findAppiumJS(AppiumDriverManager.java:387)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.startAppiumServer(AppiumDriverManager.java:302)
at com.kms.katalon.core.appium.driver.AppiumDriverManager.startAppiumServerJS(AppiumDriverManager.java:262)
at com.kms.katalon.composer.mobile.objectspy.dialog.MobileInspectorController.startMobileApp(MobileInspectorController.java:194)
at com.kms.katalon.composer.mobile.objectspy.components.MobileLocalAppComposite$12$1.call(MobileLocalAppComposite.java:479)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.startThreadAndWait(ProgressMonitorDialogWithThread.java:36)
at com.kms.katalon.composer.components.impl.dialogs.ProgressMonitorDialogWithThread.runAndWait(ProgressMonitorDialogWithThread.java:48)
ā€¦ 2 more

This worked for me too: ā€œC:\Users\AppData\Local\Programs\Appium\resources\app\node_modules\appiumā€

You are right. I get it.

In Mac Terminal

which appium

Results in: /usr/local/bin/appium

ls -l /usr/local/bin/appium

Results in: lrwxr-xr-x 1 root wheel 35 4 apr 12:52 /usr/local/bin/appium ā†’ ā€¦/lib/node_modules/appium/index.js

This gives the directory /usr/local/lib/node_modules/appium

This directory can be used in the preferences/Katalon/Mobile/Appium directory.

  • Open Katalon Studio: Launch Katalon Studio.
  • Go to Preferences: Click on ā€œFileā€ > ā€œSettingsā€ (or ā€œPreferencesā€ on macOS).
  • Navigate to Mobile Settings: Go to ā€œProjectā€ > ā€œMobileā€.
  • Configure Appium Path: In the ā€œAppium Serverā€ section, set the ā€œAppium Pathā€ to /usr/local/bin/appium .
  • Save and Restart: Save the settings and restart Katalon Studio for the changes to take effect.

Hi there, :wave:

Thank you very much for your topic! It may take a little while before Katalon team member or others forum members respond to you.

In the meantime, you can double-check your post to see if you can add any extra information i.e. error logs, HTML codes, screenshots, etc. Check out this posting guide to help us help you better!

Thanks! :sunglasses:
Katalon Community team