Mobile automation : The save and close button in the add application window is not active

@phaserescu

How I get that ?

type in the command and copy the text or do a screenshot of the whole window.

@phaserescu
What to type ? :slight_smile:
What is the command ?

@phaserescu

this one you mean ?

your last error was from this command.

Error: × Encountered an error when installing package: npm command ‘install --save-dev --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\n[17:12:45] Error installing Chromedriver: unable to get local issuer certificate\n[17:12:45] Error: unable to get local issuer certificate\n at Function.AxiosError.from (C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)\n at RedirectableRequest.handleRequestError (C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:606:25)\n at RedirectableRequest.emit (node:events:526:35)\n at ClientRequest.eventHandlers. (C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:14:24)\n at ClientRequest.emit (node:events:514:28)\n at TLSSocket.socketErrorListener (node:_http_client:495:9)\n at TLSSocket.emit (node:events:514:28)\n at emitErrorNT (node:internal/streams/destroy:151:8)\n at emitErrorCloseNT (node:internal/streams/destroy:116:3)\n at processTicksAndRejections (node:internal/process/task_queues:82:21)\n[17:12:45] 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 cleanup Failed to remove some directories [
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\portscanner\node_modules\async’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\portscanner\node_modules\async’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\gauge’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\gauge’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\gauge’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules@appium\support’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\support’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules@appium\base-driver\node_modules’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\base-driver\node_modules’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\base-driver’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules@appium\base-driver’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\@appium\base-driver’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\prebuild-install’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\prebuild-install’
npm WARN cleanup }
npm WARN cleanup ],
npm WARN cleanup [
npm WARN cleanup ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\prebuild-install’,
npm WARN cleanup [Error: EPERM: operation not permitted, rmdir ‘C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\prebuild-install’] {
npm WARN cleanup errno: -4048,
npm WARN cleanup code: ‘EPERM’,
npm WARN cleanup syscall: ‘rmdir’,
npm WARN cleanup path: ‘C:\Users\MeironB\.appium\node_modules\appium-uiautomator2-driver\node_modules\prebuild-install’
npm WARN cleanup }
npm WARN cleanup ]
npm WARN cleanup ]
npm ERR! code 1
npm ERR! path C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\appium-chromedriver
npm ERR! command failed
npm ERR! command C:\WINDOWS\system32\cmd.exe /d /s /c node install-npm.js
npm ERR! [17:12:45] Error installing Chromedriver: unable to get local issuer certificate
npm ERR! [17:12:45] Error: unable to get local issuer certificate
npm ERR! at Function.AxiosError.from (C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)
npm ERR! at RedirectableRequest.handleRequestError (C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:606:25)
npm ERR! at RedirectableRequest.emit (node:events:526:35)
npm ERR! at ClientRequest.eventHandlers. (C:\Users\MeironB.appium\node_modules\appium-uiautomator2-driver\node_modules\follow-redirects\index.js:14:24)
npm ERR! at ClientRequest.emit (node:events:514:28)
npm ERR! at TLSSocket.socketErrorListener (node:_http_client:495:9)
npm ERR! at TLSSocket.emit (node:events:514:28)
npm ERR! at emitErrorNT (node:internal/streams/destroy:151:8)
npm ERR! at emitErrorCloseNT (node:internal/streams/destroy:116:3)
npm ERR! at processTicksAndRejections (node:internal/process/task_queues:82:21)
npm ERR! [17:12:45] Downloading Chromedriver can be skipped by setting the’APPIUM_SKIP_CHROMEDRIVER_INSTALL’ environment variable.

npm ERR! A complete log of this run can be found in: C:\Users\MeironB\AppData\Local\npm-cache_logs\2023-12-18T15_12_10_652Z-debug-0.log

seems that this is a permission issue. Try opening an administrator command line and run the command there

I run it from administarator
image

It’s strange that you get this error. a possible solution is discussed at npm ERR! unable to get local issuer certificate [Solved] | bobbyhadz

Try that and see if it is working. But that means that you bypass certificate validation as I understand it.

Ok
Thanks a lot for trying help me