macaca-android
macaca-android copied to clipboard
🤖 Macaca Android driver
> [email protected] install D:\work\Awesome-BDD\node_modules\xctestwd > node ./scripts/install.js > [email protected] install D:\work\Awesome-BDD\node_modules\mec_driver_server\node_modules\uiautomatorwd > node ./scripts/build.js (node:7400) UnhandledPromiseRejectionWarning: ,, FAILURE: Build failed with an exception. * What went wrong: A problem occurred...
``` Android Studio Arctic Fox | 2020.3.1 Patch 3 Build #AI-203.7717.56.2031.7784292, built on September 30, 2021 Runtime version: 11.0.10+0-b96-7281165 x86_64 VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o. macOS 11.6...
Emulator is no longer in android sdk `tools` dir, but in the separate dir named `emulator`. In your code you use following line to locate emulator: `var emulatorCommand = path.resolve(env.ANDROID_HOME,...
**Macaca Version: 2.2.0:** **macaca-android:2.1.0** **responseHandler.js:11:12 [master] pid:54708 Recieve HTTP Request from Client[2020-01-10 20:38:00]: method: GET url: /wd/hub/session/05e19d3e-92a1-4677-93b5-1439998797ab/contexts, jsonBody: {} >> this.webviewVersion found 74 use it! >> Chromedriver versions map: [...
macaca相关依赖: > macaca-doctor version: 2.0.18 > > Node.js checklist: > > node env: D:\nodejs\node.exe > node version: v8.11.3 > > Android checklist: > > JAVA version is `1.8` > JAVA_HOME...
$ npm i -g macaca-android npm WARN deprecated [email protected]: ReDoS vulnerability parsing Set-Cookie https://nodesecurity.io/advisories/130 npm WARN deprecated [email protected]: Use uuid module instead > [email protected] install C:\Users\A260723\AppData\Roaming\npm\node_modules\macaca-android\node_modules\macaca-chromedriver > node ./bin/macaca-chromedriver install...
如果在脚本中设置autoAcceptAlerts=true,用来实现自动接收系统权限提示,但是假如ListView中嵌套Button、TextView时,如果设置android:descendantFocusability="blocksDescendants,这些按钮会被自动触发。建议Android autoAcceptAlerts=true时增加排除名单,减小误操作。
`OSX:10.12.3` `Android:5.1.1` `Python:2.7` `macaca-android:2.0.40` 运行用例出现`shortMsg=Process crashed`,从而导致元素没发操作。 ```shell >> responseHandler.js:11:12 [master] pid:12657 Recieve HTTP Request from Client[2017-10-27 15:09:01]: method: POST url: /wd/hub/session/6254c1fb-db0c-4018-929f-8580b1a52a61/element, jsonBody: {"using":"name","value":"Subscribe"} >> restart UIAutomatorWD server >> uiautomator-client.js:61:14 [master]...
https://stackoverflow.com/questions/18660207/converting-a-character-into-keycode sendKey 行为通过这个透传, 不要放在js 层处理了
版本号: macaca-android: 2.0.40 macaca-cli:2.0.10 更新前用例跑起来没问题,更新之后几乎无法跑起来了,如错误日志中描述,好像是macaca.client.commands.Element中的isDisplayed()方法报错了。 错误日志如下: 2017-10-12 19:47:13 Request:http://localhost:3456/wd/hub/session/c68bfd70-37a8-4ee4-b380-75ab547648ce/element:{"using":"name","value":"广场"} 2017-10-12 19:47:16 Response:{"status":0,"value":{"ELEMENT":"1"},"sessionId":"c68bfd70-37a8-4ee4-b380-75ab547648ce"} 2017-10-12 19:47:16 Request:http://localhost:3456/wd/hub/session/c68bfd70-37a8-4ee4-b380-75ab547648ce/element/1/displayed 2017-10-12 19:47:19 Response:{"status":13,"value":"An unknown server-side error occurred while processing the command.","sessionId":"c68bfd70-37a8-4ee4-b380-75ab547648ce"} attempt to search the...