• app 里有一个轮播的滚动条 at 2023年10月19日

    谢谢回复

    图像识别也要一个一个点过去,太慢了。

    遍历...应该也不行。。遍历就算找到元素,如果它不是当前轮播的,点了也没用
    还有别的办法吗

  • thank you

  • 好像可以了,不过不知道会不会有问题,在试试

  • 嗯嗯

  • 前几个月? github 就更到 2019 年啊,你在哪看到了,它前几个月在修 bug

  • 百度得不准,有的 api 搜出来的有,但使用时是没有的

  • 我试了逍遥模拟器 如果安装 android 9 就会这样。
    我把逍遥换成 android 7 的系统就好了,可以用了

    谢谢

  • 嗯,我用的就是逍遥模拟器 9
    谢谢,我换个别的模拟器试试

  • 我也不知道,看日志别的都没有,就它有。
    这是启动 session 自动连接打出来的,我也不明白

  • 不知道。
    adb devices 是有设备的。但它就提示找不到


  • 就这句
    结果是设备没找到

  • appium2 现在好麻烦,不如以前的呢。安装全靠运气。 我翻墙都还是这个错误。
    真是不理解怎么回事?

    有类似 appium2 的替代工具吗

  • PS C:\Users\ty> appium driver install uiautomator2
    × Installing 'uiautomator2' using NPM install spec 'appium-uiautomator2-driver'
    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[10:39:28] Error installing Chromedriver: read ECONNRESET\n[10:39:29] Error: read ECONNRESET\n    at Function.AxiosError.from (C:\\Users\\ty\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\core\\AxiosError.js:89:14)\n    at RedirectableRequest.handleRequestError (C:\\Users\\ty\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\axios\\lib\\adapters\\http.js:591:25)\n    at RedirectableRequest.emit (node:events:526:35)\n    at ClientRequest.eventHandlers.<computed> (C:\\Users\\ty\\.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[10:39:29] 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\\ty\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\source-map',
    npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\ty\.appium\node_modules\appium-uiautomator2-driver\node_modules\source-map'] {
    npm WARN cleanup       errno: -4048,
    npm WARN cleanup       code: 'EPERM',
    npm WARN cleanup       syscall: 'rmdir',
    npm WARN cleanup       path: 'C:\\Users\\ty\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\source-map'
    npm WARN cleanup     }
    npm WARN cleanup   ],
    npm WARN cleanup   [
    npm WARN cleanup     'C:\\Users\\ty\\.appium\\node_modules\\appium-uiautomator2-driver',
    npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\ty\.appium\node_modules\appium-uiautomator2-driver\node_modules\ncp\test\symlink-fixtures\src'] {
    npm WARN cleanup       errno: -4048,
    npm WARN cleanup       code: 'EPERM',
    npm WARN cleanup       syscall: 'rmdir',
    npm WARN cleanup       path: 'C:\\Users\\ty\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\ncp\\test\\symlink-fixtures\\src'
    npm WARN cleanup     }
    npm WARN cleanup   ],
    npm WARN cleanup   [
    npm WARN cleanup     'C:\\Users\\ty\\.appium\\node_modules\\appium-uiautomator2-driver',
    npm WARN cleanup     [Error: EPERM: operation not permitted, rmdir 'C:\Users\ty\.appium\node_modules\appium-uiautomator2-driver\node_modules\prebuild-install\node_modules\tar-fs\test'] {
    npm WARN cleanup       errno: -4048,
    npm WARN cleanup       code: 'EPERM',
    npm WARN cleanup       syscall: 'rmdir',
    npm WARN cleanup       path: 'C:\\Users\\ty\\.appium\\node_modules\\appium-uiautomator2-driver\\node_modules\\prebuild-install\\node_modules\\tar-fs\\test'
    npm WARN cleanup     }
    npm WARN cleanup   ]
    npm WARN cleanup ]
    npm ERR! code 1
    npm ERR! path C:\Users\ty\.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! [10:39:28] Error installing Chromedriver: read ECONNRESET
    npm ERR! [10:39:29] Error: read ECONNRESET
    npm ERR!     at Function.AxiosError.from (C:\Users\ty\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\core\AxiosError.js:89:14)
    npm ERR!     at RedirectableRequest.handleRequestError (C:\Users\ty\.appium\node_modules\appium-uiautomator2-driver\node_modules\axios\lib\adapters\http.js:591:25)
    npm ERR!     at RedirectableRequest.emit (node:events:526:35)
    npm ERR!     at ClientRequest.eventHandlers.<computed> (C:\Users\ty\.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! [10:39:29] 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\ty\AppData\Local\npm-cache\_logs\2023-08-18T02_37_57_719Z-debug-0.log
    

    这里上面写着:
    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.

    但下面还是有句 chromedriver 错误。这是哪个问题?


  • 请问 appium 怎么连接 ipad at 2023年08月16日

    我只连过 android

  • 谢谢我试试看

  • 是在手机上操作,不用电脑

  • 😓

  • 
    
    img = base64.urlsafe_b64decode(da)
    with open("filename.png", "wb") as f:
        f.write(img)
    

    转完了,只是一个黑的什么都没有。不知道是我找错了,还是本来就这样。
    下面那个 “背景图”,就是在
    里的图片怎么取呢?
    谢谢

  • img = base64.urlsafe_b64decode(da)
    with open("filename.png", "wb") as f:
        f.write(img)
    

    转完了,只是一个黑的什么都没有。不知道是我找错了,还是本来就这样。
    下面那个 “背景图”,就是在

    里的图片怎么取呢?
    谢谢
  • webdriver 怎么回根元素, at 2022年03月24日

    shi = d.find_element_by_css_selector('#bb')
    已经定位到 bb 了,而 aa 确是在当前定位元素的多层之外,我以为要先回到根,至少是 aa 外的元素才能定位到。
    没想到原来直接就可以。。。

  • webdrive 不能移动窗口吗 at 2021年09月29日

    谢谢,我试试

  • webdrive 不能移动窗口吗 at 2021年09月28日

    不是页面内,是移动浏览器窗口

  • 后台被 杀了什么意思 ?模拟器把 app 杀了?。 怎么添加到白名单

  • 哦,谢谢

  • 找到原因了,你们都错了。。。已解决!!!