Mobile Unable to Start Application

Hi Team i;m new to this Katalon Mobile Testing , able to guide me on what’s this issue is about?

Unable to start application: 'C:\Users\nhyu\APK\app-release-v.2.13.8-uat.apk' (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to start application: 'C:\Users\nhyu\APK\app-release-v.2.13.8-uat.apk'
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.stepFailed(MobileKeywordMain.groovy:38)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:21)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:90)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:47)
	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:78)
	at Verify Correct Alarm Message.run(Verify Correct Alarm Message:37)
	at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
	at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
	at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:448)
	at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:439)
	at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:418)
	at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:410)
	at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:285)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:137)
	at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:128)
	at TempTestCase1724815407828.run(TempTestCase1724815407828.groovy:25)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
Caused by: org.openqa.selenium.SessionNotCreatedException: Unable to create a new remote session. Please check the server log for more details. Original error: An unknown server-side error occurred while processing the command. Original error: Could not find a driver for automationName 'uiautomator2' and platformName 'android'. Have you installed a driver that supports those capabilities? Run 'appium driver list --installed' to see. (Lower-level error: Could not find installed driver to support given caps)
Build info: version: '3.141.59', revision: 'unknown', time: 'unknown'
System info: host: 'EDLP2022-016', ip: '192.168.0.53', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.7'
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not find a driver for automationName 'uiautomator2' and platformName 'android'. Have you installed a driver that supports those capabilities? Run 'appium driver list --installed' to see. (Lower-level error: Could not find installed driver to support given caps)
    at getResponseForW3CError (C:\Users\nhyu\AppData\Roaming\npm\node_modules\appium\node_modules\@appium\base-driver\lib\protocol\errors.js:1145:9)
    at asyncHandler (C:\Users\nhyu\AppData\Roaming\npm\node_modules\appium\node_modules\@appium\base-driver\lib\protocol\protocol.js:485:57)
Build info: version: '3.141.59', revision: 'unknown', time: 'unknown'
System info: host: 'EDLP2022-016', ip: '192.168.0.53', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.7'
Driver info: driver.version: SwipeableAndroidDriver
	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:208)
	at io.appium.java_client.remote.AppiumCommandExecutor.createSession(AppiumCommandExecutor.java:217)
	at io.appium.java_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)
	at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
	at io.appium.java_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)
	at io.appium.java_client.AppiumDriver.execute(AppiumDriver.java:1)
	at io.appium.java_client.android.AndroidDriver.execute(AndroidDriver.java:1)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)
	at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
	at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
	at io.appium.java_client.DefaultGenericMobileDriver.<init>(DefaultGenericMobileDriver.java:38)
	at io.appium.java_client.AppiumDriver.<init>(AppiumDriver.java:84)
	at io.appium.java_client.android.AndroidDriver.<init>(AndroidDriver.java:85)
	at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.<init>(SwipeableAndroidDriver.java:23)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:560)
	at com.kms.katalon.core.appium.driver.AppiumDriverManager.createMobileDriver(AppiumDriverManager.java:542)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startLocalMobileDriver(MobileDriverFactory.java:597)
	at com.kms.katalon.core.mobile.keyword.internal.MobileDriverFactory.startMobileDriver(MobileDriverFactory.java:510)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.doCall(StartApplicationKeyword.groovy:88)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword$_startApplication_closure1.call(StartApplicationKeyword.groovy)
	at com.kms.katalon.core.mobile.keyword.internal.MobileKeywordMain.runKeyword(MobileKeywordMain.groovy:19)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.startApplication(StartApplicationKeyword.groovy:90)
	at com.kms.katalon.core.mobile.keyword.builtin.StartApplicationKeyword.execute(StartApplicationKeyword.groovy:47)
	at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
	at com.kms.katalon.core.mobile.keyword.MobileBuiltInKeywords.startApplication(MobileBuiltInKeywords.groovy:78)
	at Script1529986178839.run(Script1529986178839.groovy:37)
	... 13 more
Caused by: java.lang.reflect.InvocationTargetException
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
	at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
	at io.appium.java_client.remote.AppiumCommandExecutor$1.createSession(AppiumCommandExecutor.java:186)
	... 38 more
Caused by: org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Original error: Could not find a driver for automationName 'uiautomator2' and platformName 'android'. Have you installed a driver that supports those capabilities? Run 'appium driver list --installed' to see. (Lower-level error: Could not find installed driver to support given caps)
Build info: version: '3.141.59', revision: 'unknown', time: 'unknown'
System info: host: 'EDLP2022-016', ip: '192.168.0.53', os.name: 'Windows 10', os.arch: 'amd64', os.version: '10.0', java.version: '17.0.7'
Driver info: driver.version: SwipeableAndroidDriver
remote stacktrace: UnknownError: An unknown server-side error occurred while processing the command. Original error: Could not find a driver for automationName 'uiautomator2' and platformName 'android'. Have you installed a driver that supports those capabilities? Run 'appium driver list --installed' to see. (Lower-level error: Could not find installed driver to support given caps)
    at getResponseForW3CError (C:\Users\nhyu\AppData\Roaming\npm\node_modules\appium\node_modules\@appium\base-driver\lib\protocol\errors.js:1145:9)
    at asyncHandler (C:\Users\nhyu\AppData\Roaming\npm\node_modules\appium\node_modules\@appium\base-driver\lib\protocol\protocol.js:485:57)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
	at java.base/jdk.internal.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:77)
	at java.base/jdk.internal.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
	at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
	at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
	at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
	at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
	... 42 more
)

Steps:

  1. Launch Emulator in Android Studio
  2. Launch Android Test from Katalon
    image

Please let me know if there’s any other additional information i need to provide.

1 Like

Hi there,

Thank you very much for your topic. Please note that it may take a little while before a member of our community or from Katalon team responds to you.

Thanks!

right version installed?

Hi , my Katalon Free Version is 9.5.0 you mean the appium version i installed? Do i need to install the appium driver?

I tried installing the drivers (espresso & uiautomator2) but i got this message, I read through some discussion online but the methods seems to not be workin any advice on what need to be done?

C:\Users\nhyu>appium driver install uiautomator2
√ Checking if 'appium-uiautomator2-driver' is compatible
× Installing 'uiautomator2' using NPM install spec 'appium-uiautomator2-driver'
Error: × Encountered an error when installing package: npm command 'install --save-dev --no-progress --no-audit --omit=peer --save-exact --global-style --no-package-lock appium-uiautomator2-driver --json' failed with code 1.

STDOUT:
{
  "error": {
    "code": 1,
    "summary": "command failed",
    "detail": "C:\\Windows\\system32\\cmd.exe /d /s /c node install-npm.js\ndbug ChromedriverStorageClient Error: unable to get local issuer certificate\ndbug ChromedriverStorageClient     at Function.AxiosError.from (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\core\\AxiosError.js:89:14)\ndbug ChromedriverStorageClient     at RedirectableRequest.handleRequestError (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\adapters\\http.js:620:25)\ndbug ChromedriverStorageClient     at RedirectableRequest.emit (node:events:532:35)\ndbug ChromedriverStorageClient     at ClientRequest.eventHandlers.<computed> (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\follow-redirects\\index.js:38:24)\ndbug ChromedriverStorageClient     at ClientRequest.emit (node:events:520:28)\ndbug ChromedriverStorageClient     at emitErrorEvent (node:_http_client:103:11)\ndbug ChromedriverStorageClient     at TLSSocket.socketErrorListener (node:_http_client:506:5)\ndbug ChromedriverStorageClient     at TLSSocket.emit (node:events:520:28)\ndbug ChromedriverStorageClient     at emitErrorNT (node:internal/streams/destroy:170:8)\ndbug ChromedriverStorageClient     at emitErrorCloseNT (node:internal/streams/destroy:129:3)\ndbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:82:21)\ndbug ChromedriverStorageClient     at Axios.request (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\core\\Axios.js:45:41)\ndbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:95:5)\ndbug ChromedriverStorageClient     at retrieveData (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\utils.js:92:5)\ndbug ChromedriverStorageClient     at retrieveResponseSafely (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\storage-client\\storage-client.js:73:16)\nWARN ChromedriverStorageClient Cannot retrieve Chromedrivers info from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json. Make sure this URL is accessible from your network. Original error: unable to get local issuer certificate\ndbug ChromedriverStorageClient Error: unable to get local issuer certificate\ndbug ChromedriverStorageClient     at Function.AxiosError.from (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\core\\AxiosError.js:89:14)\ndbug ChromedriverStorageClient     at RedirectableRequest.handleRequestError (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\adapters\\http.js:620:25)\ndbug ChromedriverStorageClient     at RedirectableRequest.emit (node:events:532:35)\ndbug ChromedriverStorageClient     at ClientRequest.eventHandlers.<computed> (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\follow-redirects\\index.js:38:24)\ndbug ChromedriverStorageClient     at ClientRequest.emit (node:events:520:28)\ndbug ChromedriverStorageClient     at emitErrorEvent (node:_http_client:103:11)\ndbug ChromedriverStorageClient     at TLSSocket.socketErrorListener (node:_http_client:506:5)\ndbug ChromedriverStorageClient     at TLSSocket.emit (node:events:520:28)\ndbug ChromedriverStorageClient     at emitErrorNT (node:internal/streams/destroy:170:8)\ndbug ChromedriverStorageClient     at emitErrorCloseNT (node:internal/streams/destroy:129:3)\ndbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:82:21)\ndbug ChromedriverStorageClient     at Axios.request (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\core\\Axios.js:45:41)\ndbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:95:5)\ndbug ChromedriverStorageClient     at retrieveData (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\utils.js:92:5)\ndbug ChromedriverStorageClient     at retrieveResponseSafely (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\storage-client\\storage-client.js:73:16)\nWARN ChromedriverStorageClient Cannot retrieve Chromedrivers info from https://chromedriver.storage.googleapis.com. Make sure this URL is accessible from your network. Original error: unable to get local issuer certificate\nERR! CDInstaller Error installing Chromedriver: Cannot retrieve the information about available Chromedrivers from https://chromedriver.storage.googleapis.com,https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json. Please make sure these URLs are avilable within your local network, check Appium server logs and/or consult the driver troubleshooting guide.\nERR! CDInstaller Error: Cannot retrieve the information about available Chromedrivers from https://chromedriver.storage.googleapis.com,https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json. Please make sure these URLs are avilable within your local network, check Appium server logs and/or consult the driver troubleshooting guide.\nERR! CDInstaller     at ChromedriverStorageClient.retrieveMapping (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\storage-client\\storage-client.js:90:13)\nERR! CDInstaller     at ChromedriverStorageClient.syncDrivers (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\storage-client\\storage-client.js:357:7)\nERR! CDInstaller     at install (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\install.js:57:3)\nERR! CDInstaller     at Object.doInstall (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\lib\\install.js:64:3)\nERR! CDInstaller     at main (C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\appium-chromedriver\\install-npm.js:66:5)\nERR! CDInstaller Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable."
  }
}

STDERR:
npm warn config global-style This option has been deprecated in favor of `--install-strategy=shallow`
npm warn deprecated inflight@1.0.6: This module is not supported, and leaks memory. Do not use it. Check out lru-cache if you want a good and tested way to coalesce async requests by a key value, which is much more comprehensive and powerful.
npm warn deprecated rimraf@2.4.5: Rimraf versions prior to v4 are no longer supported
npm warn deprecated glob@6.0.4: Glob versions prior to v9 are no longer supported
npm warn cleanup Failed to remove some directories [
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\nhyu\\.appium\\node_modules\\appium',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nhyu\.appium\node_modules\appium\node_modules\cliui'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\nhyu\\.appium\\node_modules\\appium\\node_modules\\cliui'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     'C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\lazystream'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\lazystream'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\base-driver\build\lib'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\@appium\\base-driver\\build\\lib'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\@appium',npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\support\node_modules\axios\lib'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\@appium\\support\\node_modules\\axios\\lib'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\@appium\\support',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\support\node_modules'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\@appium\\support\\node_modules'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\spdy-transport\node_modules'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\spdy-transport\\node_modules'
npm warn cleanup     }
npm warn cleanup   ],
npm warn cleanup   [
npm warn cleanup     '\\\\?\\C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\@appium\\base-driver',
npm warn cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\base-driver\node_modules\axios'] {
npm warn cleanup       errno: -4048,
npm warn cleanup       code: 'EPERM',
npm warn cleanup       syscall: 'rmdir',
npm warn cleanup       path: 'C:\\Users\\nhyu\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\@appium\\base-driver\\node_modules\\axios'
npm warn cleanup     }
npm warn cleanup   ]
npm warn cleanup ]
npm error code 1
npm error path C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver
npm error command failed
npm error command C:\Windows\system32\cmd.exe /d /s /c node install-npm.js
npm error dbug ChromedriverStorageClient Error: unable to get local issuer certificate
npm error dbug ChromedriverStorageClient     at Function.AxiosError.from (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)
npm error dbug ChromedriverStorageClient     at RedirectableRequest.handleRequestError (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:620:25)
npm error dbug ChromedriverStorageClient     at RedirectableRequest.emit (node:events:532:35)
npm error dbug ChromedriverStorageClient     at ClientRequest.eventHandlers.<computed> (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:38:24)
npm error dbug ChromedriverStorageClient     at ClientRequest.emit (node:events:520:28)
npm error dbug ChromedriverStorageClient     at emitErrorEvent (node:_http_client:103:11)
npm error dbug ChromedriverStorageClient     at TLSSocket.socketErrorListener (node:_http_client:506:5)
npm error dbug ChromedriverStorageClient     at TLSSocket.emit (node:events:520:28)
npm error dbug ChromedriverStorageClient     at emitErrorNT (node:internal/streams/destroy:170:8)
npm error dbug ChromedriverStorageClient     at emitErrorCloseNT (node:internal/streams/destroy:129:3)
npm error dbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:82:21)
npm error dbug ChromedriverStorageClient     at Axios.request (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\Axios.js:45:41)
npm error dbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:95:5)
npm error dbug ChromedriverStorageClient     at retrieveData (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\utils.js:92:5)
npm error dbug ChromedriverStorageClient     at retrieveResponseSafely (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\storage-client\storage-client.js:73:16)
npm error WARN ChromedriverStorageClient Cannot retrieve Chromedrivers info from https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json. Make sure this URL is accessible from your network. Original error: unable to get local issuer certificate
npm error dbug ChromedriverStorageClient Error: unable to get local issuer certificate
npm error dbug ChromedriverStorageClient     at Function.AxiosError.from (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)
npm error dbug ChromedriverStorageClient     at RedirectableRequest.handleRequestError (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:620:25)
npm error dbug ChromedriverStorageClient     at RedirectableRequest.emit (node:events:532:35)
npm error dbug ChromedriverStorageClient     at ClientRequest.eventHandlers.<computed> (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:38:24)
npm error dbug ChromedriverStorageClient     at ClientRequest.emit (node:events:520:28)
npm error dbug ChromedriverStorageClient     at emitErrorEvent (node:_http_client:103:11)
npm error dbug ChromedriverStorageClient     at TLSSocket.socketErrorListener (node:_http_client:506:5)
npm error dbug ChromedriverStorageClient     at TLSSocket.emit (node:events:520:28)
npm error dbug ChromedriverStorageClient     at emitErrorNT (node:internal/streams/destroy:170:8)
npm error dbug ChromedriverStorageClient     at emitErrorCloseNT (node:internal/streams/destroy:129:3)
npm error dbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:82:21)
npm error dbug ChromedriverStorageClient     at Axios.request (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\Axios.js:45:41)
npm error dbug ChromedriverStorageClient     at processTicksAndRejections (node:internal/process/task_queues:95:5)
npm error dbug ChromedriverStorageClient     at retrieveData (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\utils.js:92:5)
npm error dbug ChromedriverStorageClient     at retrieveResponseSafely (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\storage-client\storage-client.js:73:16)
npm error WARN ChromedriverStorageClient Cannot retrieve Chromedrivers info from https://chromedriver.storage.googleapis.com. Make sure this URL is accessible from your network. Original error: unable to get local issuer certificate
npm error ERR! CDInstaller Error installing Chromedriver: Cannot retrieve the information about available Chromedrivers from https://chromedriver.storage.googleapis.com,https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json. Please make sure these URLs are avilable within your local network, check Appium server logs and/or consult the driver troubleshooting guide.
npm error ERR! CDInstaller Error: Cannot retrieve the information about available Chromedrivers from https://chromedriver.storage.googleapis.com,https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json. Please make sure these URLs are avilable within your local network, check Appium server logs and/or consult the driver troubleshooting guide.
npm error ERR! CDInstaller     at ChromedriverStorageClient.retrieveMapping (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\storage-client\storage-client.js:90:13)
npm error ERR! CDInstaller     at ChromedriverStorageClient.syncDrivers (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\storage-client\storage-client.js:357:7)
npm error ERR! CDInstaller     at install (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\install.js:57:3)
npm error ERR! CDInstaller     at Object.doInstall (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\lib\install.js:64:3)
npm error ERR! CDInstaller     at main (C:\Users\nhyu\.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver\install-npm.js:66:5)
npm error ERR! CDInstaller Downloading Chromedriver can be skipped by setting the'APPIUM_SKIP_CHROMEDRIVER_INSTALL' environment variable.
npm error A complete log of this run can be found in: C:\Users\nhyu\AppData\Local\npm-cache\_logs\2024-08-28T07_19_03_148Z-debug-0.log

Please refer to documentation for setup - there’s a version for real devices and a version for emulators but either method requires Appium. Cheers Dan

Hi Dan, thank you for the suggestion, I see in the documentation that to work with Emulator i need to ‘Install Appium version 1.12.1 or newer via NPM’ , so newer version of Appium is not compatible with Katalon Studio Free Version 9.5.0 ??? & i see that Katalon Studio Free Version 9.5.0 works with Appium 2.X .
image

I have the followings software versions:
Katalon Studio Free Version 9.5.0
Appium Version 2.11.3
Android Studio Jellyfish 2023.3.1
image

Should i downgrade any of the Softwares?

Ok, I’ve not gone beyond Appium 1.x yet so this is new to me but there is another doc here.

Hi, found out that Appium version 2 installed driver separately from Server , not like Appium version 1 will installed driver together when u installed the server. So when installing Appium version 2 make sure on your side got nothing blocking the installation (like disconnect from VPN or any Security software).

1 Like

Hi @nurainhilmiyabinti.a ,
Please install the uiAutomator2 version in your laptop using the below command:
appium driver install uiautomator2@2.10.0

And then check if the driver is installed using this: appium driver list

Thank you

Hi @bhavyansh.ameta , can advice how do i setup appium version 2 directory in Katalon??? Cause i see that appium install driver in different file directory by default for Appium 2 , it is different compare with appium version 1 where they install the driver in one file directory (easier to setup in Katalon like below). Any advice on how to setup appium directory for Appium Version 2 in Katalon??


.

Hi @nurainhilmiyabinti.a ,

I suggest to click on “Restore Defaults” and then click on “Apply and Close”. After that, when you start the Mobile Recorder or Mobile Spy from Katalon Studio, then the Appium directory path will be auto filled with the correct path:

Please note that the appium drivers (uiAutomator2 or the XCUITest) will be under the .appium folder in your user directory.

Thank you

1 Like