Appium 图像识别定位元素
# Appium 图像识别元素定位
# 安装 opencv
下载地址:https://opencv.org/releases/ (opens new window)
配置环境变量
OPENCV_BIN_DIR
:C:\tools\opencv\build\x64\vc15\bin
OPENCV_INCLUDE_DIR
:C:\tools\opencv\build\include
OPENCV_LIB_DIR
:C:\tools\opencv\build\x64\vc15\lib
Path
中新建:%OPENCV_BIN_DIR%
# 安装 opencv4nodejs
1、取消自己构建
set OPENCV4NODEJS_DISABLE_AUTOBUILD=1
2、安装
npm i opencv4nodejs
# 运行 appium
appium --use-plugins images
https://www.ruiqima.com/zh/posts/appiumposts/install-opencv4nodejs/ (opens new window)
http://testingpai.com/article/1597824416789 (opens new window)
本文完,感谢你的耐心阅读,如有需要可加我微信,备注「博客」并说明原因,我们一起进步,下次见。
编辑 (opens new window)
上次更新: 2022/05/31, 07:30:39