自定义的 Appium PC Driver,需要 Win 和 Mac 开启 Http Server
- 安装
node.js
环境
npm install -g typescript
npm install -g make-dir-cli rimraf cpr // win
npm install --save
- 添加
appium
npm install appium@next
- 添加
driver
# 每次修改都需要 build
npm install ./appium-pc-driver
npm install ./appium-mac2-driver
- 模仿 fs-driver 实现最基础的 api
- 参考
appium-pc-driver\README.md
- pc 端创建 http server
- 利用 win32/mac 接口实现截图、鼠标、键盘等交互
{
"appium:driverName": "pc",
"appium:automationName": "pc",
"platformName": "Windows",
"appPath": "C:\\Program Files\\Mozilla Firefox\\firefox.exe"
}
pip install Appium-Python-Client pytest
pytest
pytest --capture=no # show print statements in console
pytest -s # equivalent to previous command
pytest -s ./test_pc_driver.py
pip install paddlepaddle pytesseract
- https://github.com/UB-Mannheim/tesseract
- https://github.com/tesseract-ocr/tessdata_best
- https://github.com/tesseract-ocr/tessdata_fast
pip install paddlepaddle paddleocr -i https://mirror.baidu.com/pypi/simple
- https://github.com/PaddlePaddle/PaddleOCR/blob/static/doc/doc_ch/installation.md
- https://www.paddlepaddle.org.cn/documentation/docs/zh/guides/index_cn.html