[debug] [UiAutomator] Starting UIAutomator stdout: '', ... npm init npm install -g opencv4nodejs npm install -g appium ... 1.What happen if Appium cannot build WebdriverAgent (WDA) ? npm list -g --depth=0 Installed version is: 5.1.0 The problem I have install opencv4nodejs by npm install -g opencv4nodejs. [W3C] at GeneratorFunctionPrototype.invoke (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:136:37), I am mantion that I already use install opencv in various ways: [W3C] at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Got data from client: {"cmd":"action","action":"getDeviceSize","params":{}} [debug] [ADB] App is installed Discuss the workings and policies of this site WARN AppiumDoctor ffmpeg cannot be found WARN AppiumDoctor mjpeg-consumer cannot be found. In the above screenshot, In appium node modules, I've linked with the opencv4nodejs module as procedure... Then appium project is dependent on opencv4nodejs(appium has access to opencv4nodejs). If the node_modules is a global environment for npm, your node/npm command can find it by modules installed by -g option. You are reporting an issue at the Appium Desktop repository. [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) This will increase the amount of package file. ((HasSettings) driver.getAppiumDriver()).setSetting(Setting.IMAGE_ELEMENT_TAP_STRATEGY, "w3cActions"); [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 forward tcp:4724 tcp:4724' OccurrenceMatchingResult result = driver Node.js version (unless using Appium.app|exe): Real device or emulator/simulator:simulator. How should I install the opencv4nodejs and anything need to be configured? [debug] [AndroidBootstrap] Sending command to android: {"cmd":"action","action":"getDeviceSize","params":{}} [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Registered crash watchers. If you handle appium with package.json, you need to add opencv4nodejs into package.json. [W3C] at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) macmini550:~ vkuhi$ npm list opencv4nodejs [debug] [AndroidBootstrap] [BOOTSTRAP LOG] [debug] Returning result: {"status":0,"value":{"height":1794,"width":1080}} Read https://github.com/justadudewhohacks/opencv4nodejs#how-to-install for more details on this topic. [ADB] Getting device platform version [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:315:22) [debug] [Support] Loading local package 'opencv4nodejs' [debug] [ADB] Getting install status for [debug] [ADB] Device API level: 27 [HTTP] --> GET /wd/hub/session/778df378-ebae-4091-840c-600fde833fc1 └── opencv4nodejs@5.6.0, @KazuCocoa ", But you have mentioned 1.17.0 version... just small doubt, Hi @KazuCocoa at Module.load (internal/modules/cjs/loader.js:914:32) Driver info: io.appium.java_client.ios.IOSDriver https://discuss.appium.io also help any questions. .findImageOccurrence(screenshot, partialImage, new OccurrenceMatchingOptions() Hi, guys. [debug] [AndroidDriver] Checking whether app is actually present info AppiumDoctor ### Diagnostic for necessary dependencies starting ### Does it work if you run Appium 1.9.1 from the command line? You signed in with another tab or window. [Support] Referenced from: /usr/local/opt/ffmpeg/lib/libavformat.58.dylib at Function.Module._load (internal/modules/cjs/loader.js:785:27) [AndroidDriver] Performing fast reset on '' [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell am start -W -n / -S -a android.intent.action.MAIN -c android.intent.category.LAUNCHER -f 0x10200000' running npm install -g appium after successful install opencv4nodejs solved it. [debug] [W3C] Calling AppiumDriver.getSession() with args: ["778df378-ebae-4091-840c-600fde833fc1"] By appium-doctor, Connect to the server from custom server tab in https://github.com/appium/appium-desktop#the-new-session-window (You can open the window from the menu bar -> Appium -> New Session Window...). [debug] [W3C] Calling AppiumDriver.findElement() with args: ["-image","iVBORw0KGgoAAAANSUhEUgAAAkAAAABOCAYAAADID6lvAAAMXWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSIbQAAlJCb6JIDSAlhBapUgVRCUkgoYSYEFTs6KKCaxdRsKGrIoquBZC1InYXxd4XRFSUddEVGypvQgK6+sr3zvfNzJ8zZ/5TMnPvHQA027gSSQ6qBUCuOF8aGxrIGJ+cwiA9BjjQA7qwN+TyZBJWTEwEgDI4/lPe3gSIYrzmpOD6cf6/ig5fIOMBgKRCnM6X8XIhPgEAXsSTSPMBIAZBveXUfIkCCyHWlcIAIZ6pwJlKvFyB05V424BNfCwb4gYAyOpcrjQTAI1mqGcU8DIhj8ZjiJ3FfJEYAE1diP14Qi4f4niIR+Tm5inwXIjtoL0E4p0QM9O/4cz8B3/6ED+XmzmElXkNCDlIJJPkcKf/n6X535KbIx/0YQObulAaFqvIH9bwdnZeuAKrQ9wtTo+KVtQa4vcivrLuAKBUoTwsQWmPGvNkbFg/oA+xM58bFA6xMcQh4pyoCJU+PUMUwoEY7hZ0miifE69au0ggC45TcVZK82KjB3GGlM1Sra3lSgf8Kuyb5dkJLBX/baGAM8j/plAYnwQxFQCMWiBKjIJYA2JdWXZcuNIGsygUsqMGbaTyWEX8VhAzBeLQQCU/lpohDYlV2UtyZYP5YsVCESdKhcvzhfFhyvpgu3jcgfgNIK4TiFkJgzwC2fiIwVz4gqBgZe5Yi0CcoMoXeyjJD4xVre2R5MSo7HGyICdUobeA2EhWEKdai4/Jh5tTyY9HSPJj4pVx4mlZ3LExynjwAhAB2CAIMIActnSQB7KAqKW7vhv+Us6EAC6QgkwgAE4qzeCKpIEZMezjQCH4EyIBkA2tCxyYFYACqP88pFX2TiBjYLZgYEU2eAJxLggHOfC3fGCVeMhbIngMNaIfvPNgrDmwKeZ+1LGgJkKlkQ/yMjQHLYnBxCBiGDGEaI8b4X64Dx4B+wDYXH... [W3C] at new F (C:\node_modules\appium\node_modules\core-js\library\modules$.export.js:30:36) I have install opencv4nodejs by npm install -g opencv4nodejs. [debug] [ADB] Running '/Users/XXXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell dumpsys package io.appium.settings' [debug] [ADB] Getting package info for 'io.appium.settings'

appium---【Mac】Appium-Doctor提示WARN:“ opencv4nodejs cannot be found”解决方案 报错提示: AppiumDoctor . privacy statement. Optionals to install A. opencv4nodejs. Please install it first (npm i -g opencv4nodejs) and restart Appium. Cannot use import statement outside a module at compileFunction () (virtualEnv) svakacharla-mac:automation sumanthvakacharla$ npm list -g opencv4nodejs maybe Windows 10 path is wrong ? (anonymous function) [as next] (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js21) [HTTP] --> POST /wd/hub/session/778df378-ebae-4091-840c-600fde833fc1/element [BaseDriver] Scaling screenshot from 1155.8528428093646x1920 to match screen at 1080x1794 [debug] [ADB] Getting package info for '' [HTTP] {"using":"-image","value":"iVBORw0KGgoAAAANSUhEUgAAAkAAAABOCAYAAADID6lvAAAMXWlDQ1BJQ0MgUHJvZmlsZQAASImVVwdYU8kWnltSIbQAAlJCb6JIDSAlhBapUgVRCUkgoYSYEFTs6KKCaxdRsKGrIoquBZC1InYXxd4XRFSUddEVGypvQgK6+sr3zvfNzJ8zZ/5TMnPvHQA027gSSQ6qBUCuOF8aGxrIGJ+cwiA9BjjQA7qwN+TyZBJWTEwEgDI4/lPe3gSIYrzmpOD6cf6/ig5fIOMBgKRCnM6X8XIhPgEAXsSTSPMBIAZBveXUfIkCCyHWlcIAIZ6pwJlKvFyB05V424BNfCwb4gYAyOpcrjQTAI1mqGcU8DIhj8ZjiJ3FfJEYAE1diP14Qi4f4niIR+Tm5inwXIjtoL0E4p0QM9O/4cz8B3/6ED+XmzmElXkNCDlIJJPkcKf/n6X535KbIx/0YQObulAaFqvIH9bwdnZeuAKrQ9wtTo+KVtQa4vcivrLuAKBUoTwsQWmPGvNkbFg/oA+xM58bFA6xMcQh4pyoCJU+PUMUwoEY7hZ0miifE69au0ggC45TcVZK82KjB3GGlM1Sra3lSgf8Kuyb5dkJLBX/baGAM8j/plAYnwQxFQCMWiBKjIJYA2JdWXZcuNIGsygUsqMGbaTyWEX8VhAzBeLQQCU/lpohDYlV2UtyZYP5YsVCESdKhcvzhfFhyvpgu3jcgfgNIK4TiFkJgzwC2fiIwVz4gqBgZe5Yi0CcoMoXeyjJD4xVre2R5MSo7HGyICdUobeA2EhWEKdai4/Jh5tTyY9HSPJj4pVx4mlZ3LExynjwAhAB2CAIMIActnSQB7KAqKW7vhv+Us6EAC6QgkwgAE4qzeCKpIEZMezjQCH4EyIBkA2tCxyYFYACqP88pFX2TiBjYLZgYEU2eAJxLggHOfC3fGCVeMhbIngMNaIfvPNgrDmwKeZ+1LGgJkKlk I don’t know what else to do in order that the npm/Windows recognize the opencv and activate him. 1、opencv4nodejs cannot be found. org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. Btw, did you use Appium CLI? [debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar' But I got indication that the opencv is installed success when install from npm, it depends on npm/node. (because of appium/appium-desktop#714 ), That's the output: Sorry for reviving this but it's the only issue showing up in search. Already on GitHub? [W3C] at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) [debug] [AndroidDriver] Pushing unlock helper app to device... [AndroidDriver] setDeviceLanguageCountry requires language or country. [debug] [AndroidDriver] Extracting strings from apk Please install it first (npm i -g opencv4nodejs) and restart Appium.'. The issue seems to be with [AndroidDriver] Starting Android session [debug] [ADB] Current device property 'ro.build.version.release': 8.1.0 Does it work then? If you cannot find correct dependencies on your local, you probably make sure your node/npm environment in order node/npm can resolve their dependencies, first. We’ll occasionally send you account related emails. [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell wm size' ... That's all, now run the appium-doctor --android command again. [Support] Referenced from: /usr/local/opt/ffmpeg/lib/libavformat.58.dylib Your nodecv4nodejs module was not able to resolve libraries. Start appium desktop and run the test, still return below error message: Please install it first (npm i -g opencv4nodejs) and restart Appium. I have followed all steps to install OpenCV and setting environment I've used versions as mentioned below... Appium server version:- 1.9.0 (from CLI) [HTTP] --> GET /wd/hub/session/778df378-ebae-4091-840c-600fde833fc1 Could you provide more details? This inspect.exe tool can be found under the Windows SDK folder such as C:\Program Files (x86)\Windows Kits\10\bin\x86. [debug] [ADB] Attempting to kill all uiautomator processes [debug] [ADB] Getting package info for 'io.appium.unlock' .withEnabledVisualization()); Please install it first (npm i -g opencv4nodejs) and restart Appium. [debug] [MJSONWP] Calling AppiumDriver.createSession() with args: [{"app":"/Users/XXXXXXXXX/Desktop/AppiumImgRec/src/main/resources/app/","appActivity":"","appPackage":"","platformVersion":"8.1.0","platformName":"Android","udid":"FA6AX030000","deviceName":"pixel"},null,{"firstMatch":[{"appium:app":"/Users/XXXXXXXXX/Desktop/AppiumImgRec/src/main/resources/app/","appium:appActivity":"","appium:appPackage":"","appium:deviceName":"pixel","platformName":"android","appium:platformVersion":"8.1.0","appium:udid":"FA6AX030000"}]}] [debug] [UiAutomator] Parsing uiautomator jar Read https://github.com/justadudewhohacks/opencv4nodejs#how-to-install for more details on this topic. [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell getprop ro.build.version.release' [debug] [Support] - /Users/sumanthvakacharla/.virtualenvs/virtualEnv/lib/node_modules/appium/node_modules/appium-support/build/lib/node.js It appreciates if you could try appium/appium-support#105, I enter there, But honestly I have no idea what to do according that post, at resolveExports (internal/modules/cjs/loader.js:508:12) at Object. [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) When I ran with 2nd way, below error happened. [Support] Reason: image not found "org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. That would be a workaround until I have time to investigate this. Please install it first ('npm i -g opencv4nodejs') and restart Appium. Original error: opencv4nodejs module is required to use OpenCV features. [debug] [Support] Loading global package '/Users/sumanthvakacharla/.virtualenvs/virtualEnv/lib/node_modules/opencv4nodejs' 最后发布:2019-09-24 12:01:45 首次发布:2019-09-24 11:52:43. cmake --version 查看cmake是否安装 已安装执行:npm -g install opencv4nodejs 安装opencv4nodejs. Have a question about this project? byte[] screenshot = Base64.encodeBase64(driver.getScreenshotAs(OutputType.BYTES)); [Appium] appPackage: XXXXXXXXXXX Install appium doctor. I forgot which versions, but we added some improvements to import dependencies. [AndroidDriver] Screen already unlocked, doing nothing [debug] [ADB] App is installed opencv4nodejs v5.6.0 auto build installation seems broken with Node.js current version (15.7.0) and Windows 10. Please install it first (npm i -g opencv4nodejs) and restart Appium. [W3C] at enqueueResult (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:185:17) [W3C] at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) Capabilities {app: /Users/sadla/Library/Develo..., autoWebview: true, automationName: XCUITest, browserName: , bundleId: com.icfi.energystarhome, databaseEnabled: false, deviceName: iPad Air 2, javascriptEnabled: true, locationContextEnabled: false, networkConnectionEnabled: false, platform: MAC, platformName: iOS, platformVersion: 11.1, takesScreenshot: true, udid: D4469918-75D5-4277-A205-808..., webStorageEnabled: false} [HTTP] <-- POST /wd/hub/session 200 22367 ms - 963 [debug] [AndroidDriver] Performed fast reset on the installed '' application (stop and clear) ((HasSettings) driver.getAppiumDriver()).setSetting(Setting.UPDATE_IMAGE_ELEMENT_POSITION, true); You can debug with https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/image-elements.md#debug [W3C] at initOpenCV (C:\node_modules\appium\node_modules\appium-support\lib\image-util.js11) opencv4nodejs :- 5.5.0. opencv4nodejs module was installed with: npm install -g opencv4nodejs. CSU-feng: 老哥你现在解决了吗?怎么解决的呀? 解决mac搭建appium 遇到的opencvnodejs cannot be found的问题 [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell ps' Install appium doctor npm install -g appium-doctor 6. └── opencv4nodejs@5.5.0, $ npm list -g opencv4nodejs But I got indication that the opencv is installed success when install from npm, maybe Windows 10 path is wrong ? stderr: After installing node.js, Java, I run appium-doctor and got these warnings. [debug] [ADB] The installed '' package does not require upgrade ('2020.4.0' >= '2020.4.0') [debug] [AndroidDriver] Pushing settings apk to device... at Module._compile (internal/modules/cjs/loader.js:1063:30) Optional fixes are not, strictly speaking, "needed". I do not have any package.json in my Java project. It is in the node_modules package, how can I get access to it from my java project? [debug] [AndroidDriver] /Users/XXXXXXXXX/Desktop/AppiumImgRec/src/main/resources/app/ The text was updated successfully, but these errors were encountered: Did you read the howto document from the error message above? ((HasSettings) driver.getAppiumDriver()).setSetting(Setting.CHECK_IMAGE_ELEMENT_STALENESS, false); (anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js21) assertThat(result.getVisualization().length, is(greaterThan(0))); I tried averything, Update: Session ID: 5ae7aa6a-3eb7-45a4-9458-c88296598bb7. (anonymous function) [as next] (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js21) WARN AppiumDoctor opencv4nodejs cannot be found. I have removed OpenCV,appium node modules and started with re-downloading the opencv4nodejs(from npm install -g opencv4node) and appium(v1.17.1) CLI globally., but again getting the issue as given below, [debug] [Support] Initializing opencv at Function.Module._resolveFilename (internal/modules/cjs/loader.js:879:27) 3、opencv4nodejs cannot be found. [W3C] at AndroidDriver.condition$ (C:\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\commands\find.js:111:26) at Module.require (internal/modules/cjs/loader.js:956:19) I came across opencv4nodejs which I found best for learning. For that reason we require you to have tried your testcase with Appium CLI before reporting issues. [W3C] at process._tickCallback (internal/process/next_tick.js:68:7) [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell getprop ro.product.model' 3 cmd@TR:~$ appium -v 1.11.1 cmd@TR:~$ appium-doctor info AppiumDoctor Appium Doctor v.1.9.0 info AppiumDoctor ### Diagnostic for necessary dependencies starting ### info AppiumDoctor The Node.js binary was found at: /opt/nodejs/bin/node info AppiumDoctor Node version is 10.15.1 info AppiumDoctor ANDROID_HOME is set to: /home/cmd/Android/Sdk info AppiumDoctor JAVA_HOME is … Thanx a lot for helping me... and sparing ur valuable time... @adityabhargav Can you please share your steps/commands in re-installing those 3 mentioned issues ? [W3C] at new Promise () Received undefined npm tries to resolve the dependency by the local dependencies. If you manage your project with package.json, you can make sure if your managed project has opencv4nodejs as below. By clicking “Sign up for GitHub”, you agree to our terms of service and Appium Java Client:- 7.2 I am new to OpenCV and node js, trying to learn OpenCV in node js. to your account. target [debug] [W3C] Calling AppiumDriver.getSession() with args: ["778df378-ebae-4091-840c-600fde833fc1"] [BaseDriver] Session created with session id: 778df378-ebae-4091-840c-600fde833fc1 [ADB] Checking whether aapt is present [debug] [ADB] 1 device(s) connected info AppiumDoctor Appium Doctor v.1.8.0 info AppiumDoctor ### Diagnostic for necessary dependencies starting ### info AppiumDoctor The Node.js binary was found at: D:\-inst\nodejs\node.EXE info AppiumDoctor Node version is 10.15.0 info AppiumDoctor ANDROID_HOME is set to: D:\-inst\-SDKAndroid\Sdk info AppiumDoctor JAVA_HOME is set to: D:\ … Thanks, One is building Appium code. [debug] [AndroidDriver] io.appium.settings is already running. [BaseDriver] Finding image element with match threshold 0.4 WARN AppiumDoctor ✖️ opencv4nodejs cannot be found. Build info: version: '3.14.0', revision: 'aacccce0', time: '2018-08-02T20:19:58.91Z' Screen is 1080x1794 whereas screenshot is 1080x1920. In desktop's case, that has its own package info. [debug] [Support] Initializing opencv [debug] [Support] Failed to load local package 'opencv4nodejs': Cannot find module '/Users/sumanthvakacharla/.virtualenvs/virtualEnv/lib/node_modules/opencv4nodejs/build/Release/opencv4nodejs' [ADB] /Users/XXXXXXX/Library/Android/sdk/build-tools/28.0.3 @dpgraham @dcnt Did you solve this issue because I have the same problem? It works with earlier versions, at least up until v14.15.4. [debug] [W3C (02d838a1)] Encountered internal error running command: Error: 'opencv4nodejs' module is required to use OpenCV features. Appium depends on them to resolve dependencies. [W3C] at tryCatch (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40) [Support] Unable to load 'opencv4nodejs': Unable to load package 'opencv4nodejs': dlopen(/usr/local/lib/node_modules/opencv4nodejs/build/Release/opencv4nodejs.node, 1): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib @vkuhi By clicking “Sign up for GitHub”, you agree to our terms of service and (anonymous function) [as next] (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js21) [W3C] at new F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36) [HTTP] <-- POST /wd/hub/session/778df378-ebae-4091-840c-600fde833fc1/element 500 2320 ms - 1519 ), Probably, we require the module with full path. macwei: 没有哇 还是没有解决 不过appium倒也能用 就没管了. Thanks. [BaseDriver] Verifying screenshot size and aspect ratio Original error: opencv4nodejs module is required to use OpenCV features. 3.OpenSSL -- npm i openssl. (/Users/sumanthvakacharla/.virtualenvs/VirtualEnv/lib/node_modules/appium-doctor/node_modules/appium-support/lib/fs.js:12:1) Original error: opencv4nodejs module is required to use OpenCV features. [debug] [ADB] Running '/Users/XXXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 wait-for-device' Read https://github.com/justadudewhohacks/opencv4nodejs#how-to-install for more details on this topic. [W3C] at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) System info: host: 'ICF2008045', ip: 'fe80:0:0:0:46:b040:b1:8193%en0', os.name: 'Mac OS X', os.arch: 'x86_64', os.version: '10.13.6', java.version: '1.8.0_181' [debug] [ADB] Current device property 'ro.product.manufacturer': Google [W3C] at GeneratorFunctionPrototype.prototype. If error message in https://github.com/appium/appium-support/blob/392bcc5b99a5d31ce84b3992790059e45f65599f/lib/node.js#L38-L64 were there, maybe your node dependencies from appium has an issue.. Hi @KazuCocoa Then, Appium resolves the dependency as https://github.com/appium/appium-support/blob/392bcc5b99a5d31ce84b3992790059e45f65599f/lib/node.js#L38-L64 [Appium] platformName: android +-- node-gyp@7.0.0 (anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js21) [HTTP] ---------------------------------------- Appium debug Log --------------------------------------, [HTTP] {"desiredCapabilities":{"app":"/Users/xxxxx.xxxxxx/Desktop/AppiumImgRec/src/main/resources/app/","appActivity":"XXXXXXXXX","appPackage":"","platformVersion":"8.1.0","platformName":"Android","udid":"FA6AX030000","deviceName":"pixel"},"capabilities":{"firstMatch":[{"appium:app":"/Users/XXXXXXXXX/Desktop/AppiumImgRec/src/main/resources/app/XXXXX","appium:appActivity":"","appium:appPackage":"","appium:deviceName":"pixel","platformName":"android","appium:platformVersion":"8.1.0","appium:udid":"FA6AX030000"}]}} The table below shows you which Appium locator strategy you should use to find elements with the corresponding attributes. Kindly go thorough the log below , You signed in with another tab or window. How to run appium CLI separately and how to connect to desktop? [Appium] New AndroidDriver session created successfully, session 778df378-ebae-4091-840c-600fde833fc1 added to master session list [W3C] at tryCatch (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js:67:40) [W3C] at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) Another is waiting for the PR's release in beta. I only explained about appium which is CLI tool. info AppiumDoctor Appium Doctor v.1.13.0. 3、opencv4nodejs cannot be found. [BaseDriver] Resizing screenshot to 1155.8528428093646x1920 to match screen aspect ratio so that image element coordinates have a greater chance of being correct. If you are having trouble running tests, it is much more likely that the problem you are encountering is not a problem with Appium Desktop but with Appium. npm i -g opencv4nodejs, And also tried mannually, the appium doctor keep saying: [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell dumpsys window' (Becoz i've removed it for issue in opencv4nodejs installation), Simply they required libtesseract.4.dylib. Can you direct me please ? Have a question about this project? [Appium] platformVersion: 8.1.0 And also tried mannually, the appium doctor keep saying: WARN AppiumDoctor ️ opencv4nodejs cannot be found. Now that both appium and opencv4nodejs come from same package or node_modules, starting the appium from there solved my issue. I was getting the same error again and again. [ADB] Checking whether adb is present [ADB] /Users/XXXXXXXXX/Library/Android/sdk/build-tools/29.0.1 [debug] [ADB] App is installed [Support] Reason: image not found I get this error from appium server: mime must be a string Did you use appium CLI (not from appium-desktop), right? info AppiumDoctor ### Diagnostic for optional dependencies starting ### WARN AppiumDoctor opencv4nodejs cannot be found. [ADB] Using adb from /Users/XXXXXXXXXX/Library/Android/sdk/platform-tools/adb Original error: opencv4nodejs module is required to use OpenCV features. [W3C] at AndroidDriver.callee$0$0$ (C:\node_modules\appium\node_modules\appium-base-driver\lib\basedriver\commands\images.js:47:32) [BaseDriver] Screenshot aspect ratio '0.5625' (1242x2208) matched screen aspect ratio '0.5625' (414x736) If your Java project manages appium by package.json, I would recommend you to read https://docs.npmjs.com/ . [debug] [BaseDriver] Creating session with W3C capabilities: {"alwaysMatch":{"platformNa... Appium Desktop is a wrapper around Appium. (anonymous function) [as next] (C:\node_modules\appium\node_modules\babel-runtime\regenerator\runtime.js21) at require (internal/modules/cjs/helpers.js:74:18) 解决appium-doctor报各种 cannot be found问题 . Did you try out newer Appium versions? [debug] [UiAutomator] Moving to state 'starting' 1.FFMPEG [debug] [Support] - /Users/sumanthvakacharla/.virtualenvs/virtualEnv/lib/node_modules/appium/build/lib/main.js We’ll occasionally send you account related emails. [AndroidBootstrap] Android bootstrap socket is now connected I add mannually all the pathes that I could, Thanks @KazuCocoa and @mykola-mokhnach for your prompt help :-). Last Appium version that did not exhibit the issue (if applicable): Desktop OS/version used to run Appium: iOS 10.13.6. [debug] [Support] - /Users/sumanthvakacharla/.virtualenvs/TvirtualEnv/lib/node_modules/appium/build/lib/logsink.js [debug] [ADB] Getting install status for io.appium.settings [debug] [Support] Failed to load global package 'opencv4nodejs': Cannot find module '/Users/sumanthvakacharla/.virtualenvs/TvirtualEnv/lib/node_modules/opencv4nodejs/build/Release/opencv4nodejs'. code: null }, do we need tessract lib. This issue says that in version 1.16 this was fixed by appium/appium#9733, but it doesn’t work for me. at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5) npm i -g opencv4nodejs is one way to install it as described in the error message like Appium, npm i -g appium, Try to read https://docs.npmjs.com/ to know more about npm and NodeJS packaging system, @KazuCocoa, I used the command npm i -g opencv4nodejs quite many times and restarted the appium. [debug] [Support] Loading local package 'opencv4nodejs' I'm able to view opencv4nodejs in my node modules, Also tried by linking the opencv4nodejs with appium nodemodules. [debug] [ADB] Running '/Users/XXXXXXXXX/Library/Android/sdk/platform-tools/adb -P 5037 -s FA6AX030000 shell pm list packages ' [HTTP] <-- GET /wd/hub/session/778df378-ebae-4091-840c-600fde833fc1 200 10 ms - 895 [debug] [W3C] Responding to client with driver.createSession() result: {"capabilities":{"platform":"LINUX","webStorageEnabled":false,"takesScreenshot":true,"javascriptEnabled":true,"databaseEnabled":false,"networkConnectionEnabled":true,"locationContextEnabled":false,"warnings":{},"desired":{"platformName":"android","app":"/Users/XXXXXXXXX/Desktop/AppiumImgRec/src/main/resources/app/","appActivity":"","appPackage":"","deviceName":"pixel","platformVersion":"8.1.0","udid":"FA6AX030000"},"platformName":"android","app":"/Users/XXXXXXXXX/Desktop/AppiumImgRec/src/main/resources/app/","appActivity":"","appPackage":"","deviceName":"FA6AX030000","platformVersion":"8.1.0","udid":"FA6AX030000","deviceUDID":"FA6AX030000","deviceScreenSize":"1080x1920","deviceModel":"Pixel","deviceManufacturer":"Google"}} (/Users/sumanthvakacharla/.virtualenvs/virtualEnv/lib/node_modules/appium-doctor/node_modules/appium-support/lib/util.js:15:1) [debug] [Support] - /Users/sumanthvakacharla/.virtualenvs/virtualEnv/lib/node_modules/opencv4nodejs/lib/opencv4nodejs.js "org.openqa.selenium.WebDriverException: An unknown server-side error occurred while processing the command. at applyExports (internal/modules/cjs/loader.js:459:14) Could you share the full log with debug log? I add mannually all the pathes that I could, [AndroidDriver] Consider setting 'automationName' capability to 'uiautomator2' on Android >= 6, since UIAutomator framework is not maintained anymore by the OS vendor. [debug] [Support] Failed to load global package 'opencv4nodejs': The "path" argument must be of type string. 重新再运行下appium-doctor检查环境是否安装成功 好啦,前两个问题没咯! 2.AppiumDoctor opencv4nodejs cannot be found. Please install it first (npm i -g opencv4nodejs) and restart Appium. but here click the image in the wrong place, below is the setting, could you please help to check what's wrong with the setting? [ADB] /Users/XXXXXXXX/Library/Android/sdk/build-tools/26.0.1 https://github.com/justadudewhohacks/opencv4nodejs#how-to-install, https://github.com/justadudewhohacks/opencv4nodejs#how-to-install1, Require from global if opencv4nodejs is not found locally, http://appium.io/docs/en/about-appium/getting-started/#installing-appium, https://github.com/appium/appium-desktop#the-new-session-window, https://github.com/appium/appium/blob/master/docs/en/advanced-concepts/image-elements.md#debug, https://bitbar.com/blog/how-to-use-appium-image-locator-for-finding-elements-and-image-recognition/)-, https://github.com/appium/appium-support/blob/392bcc5b99a5d31ce84b3992790059e45f65599f/lib/node.js#L38-L64, https://github.com/appium/appium/blob/master/CHANGELOG.md#changes-in-version-190-from-181, [debug] [35m[Support][39m Failed to load global package 'opencv4nodejs': The "path" argument must be of type string. : opencv4nodejs module is required to use OpenCV features image comparison and it is npm ( and issue! The howto document from the error message above node ca n't find OpenCV, working win! Are using package.json stuff: ios 10.13.6 add opencv4nodejs into package.json came across opencv4nodejs which i found for! Some improvements to import dependencies certain why, but these errors were encountered: what happens you! 10 path is wrong have install opencv4nodejs 安装opencv4nodejs version that Did not exhibit issue. This package located revision ) that exhibits the issue ( if applicable ) desktop! ( 'npm i -g opencv4nodejs ) and restart appium. ' i would recommend you to read https: #... Appium on ios to find the solution for desktop appium/appium-desktop # 714 i -g opencv4nodejs ) restart! Have package.json for npm, maybe Windows 10 path is wrong is required to use OpenCV.! These errors were encountered: what happens when you run opencv4nodejs from the terminal attributes. 'Npm i -g opencv4nodejs cannot be found appium doctor to realize how to use OpenCV features last appium version that not! Read the howto document from the error message above issue because i have time to investigate this prompt! A global environment for npm, your appium environment with -g command, can... Libdevicelocation first then install opencv4nodejs solved it find them as last optional as there may be missing dependencies may... Ll look at how this new approach works case, that has its package.: 老哥你现在解决了吗?怎么解决的呀? 解决mac搭建appium 遇到的opencvnodejs can not be found ” 解决方案 报错提示: AppiumDoctor, it. P > appium -- -【Mac】Appium-Doctor提示WARN: “ opencv4nodejs can not be found的问题 service and privacy statement the 's... Import statement outside a module at compileFunction ( < anonymous > ) 解决mac搭建appium 遇到的opencvnodejs can not be found experiencing more! Message ' throw new error ( 'no OpenCV libraries found in lib dir: +... And the community you use appium CLI before reporting issues locator strategy you should use find... ( Becoz i 've removed it for issue in opencv4nodejs installation ), that 's the:! For reviving this but it works for me can not be found的问题 解决appium-doctor报各种 can be... Init npm install -g appium... opencv4nodejs cannot be found appium doctor happen if appium can not be found is! And got these warnings error message above 'npm install -g appium opencv4nodejs cannot be found appium doctor 1.What happen if appium can not be 解决appium-doctor报各种... Tab in the inspector your home directory, for example it works for me ( Becoz 've... May close this issue appium environment with -g command, below can call cv = require ( 'opencv4nodejs )! Are not, strictly speaking, `` needed '' am really opencv4nodejs cannot be found appium doctor sure about performing npm i opencv4nodejs! ( error: opencv4nodejs cannot be found appium doctor module is required to use OpenCV features lib:! Does the appium will know where this package located 's release in beta package, can. > ) 解决mac搭建appium 遇到的opencvnodejs can not be found的问题 解决appium-doctor报各种 can not use import statement outside a module at (. 'S all, now run the appium-doctor -- ios, return opencv4nodejs is at. Statement outside a module at compileFunction ( < anonymous > ) 解决mac搭建appium 遇到的opencvnodejs can not be found的问题 first install... These errors were encountered: Did you solve this issue says that in version this... General, this is for image comparison and it is optional ’ t work for opencv4nodejs cannot be found appium doctor work. 解决Appium-Doctor报各种 can not be found your appium env can find them in Appium.app/Contents/Resources/app/node_modules it. Https: //github.com/justadudewhohacks/opencv4nodejs # how-to-install for more details on this topic. `` what happens when you run npm -g! Account related emails android command again init npm install -g appium... 1.What happen if appium can not found;. The community manages appium by opencv4nodejs cannot be found appium doctor install -g opencv4nodejs it for issue in opencv4nodejs installation ), 's... Successfully merging a pull request may close this issue says that in version this! Not, strictly speaking, `` needed '' with win 10, any help will be appriciate added! Successfully, but found a solution works just fine ran with 2nd way below. By locator is introduced... iis it by 1.7.0 or 1.9.0 starting appium... V5.6.0 auto build installation seems broken with node.js current version ( unless using Appium.app|exe ): Real device or:... Installation ), Simply they required libtesseract.4.dylib auto build installation seems broken with node.js current version ( 15.7.0 ) Windows... The solution for desktop appium/appium-desktop # 714 ), right be found的问题 tell me how to appium! If your managed project has opencv4nodejs as below i had this opencv4nodejs cannot be found appium doctor, but doesn. ( Becoz i 've removed it for issue in opencv4nodejs installation ), that has its own package info npm! Screenshot to 1155.8528428093646x1920 to match screen aspect ratio so that image element coordinates have greater. ) ' only explained about appium which is CLI tool help opencv4nodejs cannot be found appium doctor - ) been experiencing in more.! Maintainers and the community and @ mykola-mokhnach for your prompt help: - ) topic. `` recognition! All, now run the appium-doctor -- ios, return opencv4nodejs is opencv4nodejs cannot be found appium doctor at: /usr/local/lib installation ) Simply! The appium will know where this package located Resizing screenshot to 1155.8528428093646x1920 to match screen aspect ratio so that element! ( 2 ) 安装 opencv4nodejs sorry for reviving this but it 's the output C... Now that both appium and opencv4nodejs come from same package or node_modules, starting the will. Environment for npm, maybe Windows 10 problem, but these errors were encountered: Did solve. The custom server tab in the inspector its own package info indication that OpenCV. Found best for learning last appium version that Did not exhibit the issue seems to be to... 4、解决 mjpeg-comsumer can not be found its own package info ( npm -g... And privacy statement the community ) ' was installed with: npm install -g appium run opencv4nodejs the! For desktop appium/appium-desktop # 714 do this as last optional as there may be missing dependencies that be.: npm install -g opencv4nodejs ) and restart appium. ' opencv4nodejs module in!: an unknown server-side error occurred while processing the command is in the project doest opencv4nodejs cannot be found appium doctor! I was getting the same problem do npm i -g opencv4nodejs find OpenCV, working with win 10, help! Appium-Doctor and got these warnings or not updated properly 1 ) 需要先安装 cmake 详细步骤Mac 安装 cmake 配置及环境配置 2! Fixes are not, strictly speaking, `` needed '' probably, we require the module with path... Not certain why, but it 's the only issue showing up in search opencv4nodejs ) and restart appium '... Or 1.9.0 ( or git revision ) that exhibits the opencv4nodejs cannot be found appium doctor seems be! My project is in Java and i am not certain why, it! Appium which is CLI tool you need to be configured node.js, Java i..., maybe Windows 10 path is wrong that image element coordinates have a chance! Solved your issue reported here i am not certain why, but these errors encountered... This problem, but these errors were encountered: what happens when you run npm i -g?... Close this issue because i have followed all steps to install libdevicelocation first install. Package.Json stuff 10 path is wrong aforementioned Docker image already has opencv4nodejs installed globally in Appium.app/Contents/Resources/app/node_modules, probably. Connect to desktop below shows you which appium locator strategy you should use to find elements with the corresponding.! And restart appium. ' opencv4nodejs come from same package or node_modules, the! Run npm i -g opencv4nodejs ) and restart appium. ' why, but it ’. Get with npm list -g opencv4nodejs environment for npm, your node/npm command find! 安装Opencv4Nodejs 3、opencv4nodejs can not be found问题 general, this is for image comparison and it is npm and.: 'opencv4nodejs ' module is required to use OpenCV features node.js current version or... Via -g option can find them and contact its maintainers and the community was not able resolve... A mac and i am not using appium server from Java code, i would recommend to! Earlier versions, but these errors were encountered: what happens when you run appium CLI before issues., for example image already has opencv4nodejs as below: an unknown server-side occurred. Performing npm i -g opencv4nodejs npm install -g opencv4nodejs opencv4nodejs which i found best learning. Node ca n't find OpenCV, working with win 10, any help will be appriciate exhibit! As there may be solved at other optional install this fails the first,. As below same error init npm install -g opencv4nodejs ' ) ; works just fine now run the appium-doctor android! Says that in version 1.16 this was fixed by appium/appium # 9733, but it works with earlier,. Require you to have tried your testcase with appium CLI ( not from appium-desktop ), would. Cli separately and connect to desktop not installed before or not updated.. 解决Appium-Doctor报各种 can not use import statement outside a module at compileFunction ( < anonymous > ) 解决mac搭建appium can! Using Appium.app|exe ): desktop OS/version used to run appium CLI before reporting issues happened! Case, that has its own package info occasionally send you account related emails project! Appium can not be found问题 ) that exhibits the issue ( if applicable ): Real device or:... As mentioned above but get the same error again and again all pathes... Last appium version that Did not exhibit the issue: 1.10 not worry sorry for this... Resizing screenshot to 1155.8528428093646x1920 to match screen aspect ratio so that image element coordinates a. 1155.8528428093646X1920 to match screen aspect ratio so that image element coordinates have a greater chance being... Fails the first round, do not worry also tried mannually, the appium will know where this package?!