Windows: C:\Users<Username>\AppData\Local\Temp Ubuntu: /tmp macOS: /tmp/chromedriver/mac-108/chromedriver-mac-x64/chromedriver /tmp/chromedriver/mac_arm-108/chromedriver-mac-arm64/chromedriver 需要通过wdio.conf.js中的cacheDir来指定,具体逻辑可以查看以下代码:
node_modules\@wdio\utils\build\node\utils.js:235
let executablePath = computeExecutablePath({
1、下载https://chromedriver.storage.googleapis.com/108.0.5359.71/chromedriver_win32.zip解压缩出chromedriver.exe放到%temp%\chromedriver\win64-108\chromedriver-win64下 2、以管理员启动CMD,进入项目根目录 3、执行
set "PRODUCT_WDIO_PASSWORD=xxxx"
node yarn wdio
完成Win 10 的前两条配置后执行下面的脚本:
set "PRODUCT_IP_TEST_PASSWORD=xxxx"
node tests\ipTest.js
curl -X POST \
-H "Authorization: token github_Token" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/tongjun741/github-action-app-test/actions/workflows/Windows10.yml/dispatches \
-d '{"ref": "main", "inputs": {"do_ip_test": "false", "do_wdio": "true", "in_dev": "false", "software_download_url": "https://dl.szdamai.com/downloads/win10_app_zh/HuaYoungApp_Win10_10.0.648_zh_setup.exe"}}'
curl -X POST
-H "Authorization: token github_Token"
-H "Accept: application/vnd.github.v3+json"
https://api.github.com/repos/tongjun741/github-action-app-test/actions/workflows/Windows10.yml/dispatches
-d '{"ref": "main", "inputs": {"do_ip_test": "false", "do_wdio": "true", "in_dev": "true", "software_download_url": "https://dev.thinkoncloud.cn/downloads/win10_app_zh/HuaYoungApp_Win10_dev_zh_setup.exe"}}'
curl -X POST \
-H "Authorization: token github_Token" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/tongjun741/github-action-app-test/actions/workflows/Windows10.yml/dispatches \
-d '{"ref": "main", "inputs": {"do_ip_test": "true", "software_download_url": "https://dl.szdamai.com/downloads/win10_app_zh/HuaYoungApp_Win10_10.0.648_zh_setup.exe"}}'
curl -X POST \
-H "Authorization: token github_Token" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/tongjun741/github-action-app-test/actions/workflows/macOS.yml/dispatches \
-d '{"ref": "main", "inputs": {"in_dev": "false", "is_arm": "true", "software_download_url": "https://dl.szdamai.com/downloads/mac_arm64_app_zh/HuaYoungApp_Mac_arm64_10.0.559_zh_setup.dmg"}}'
curl -X POST \
-H "Authorization: token github_Token" \
-H "Accept: application/vnd.github.v3+json" \
https://api.github.com/repos/tongjun741/github-action-app-test/actions/workflows/Linux.yml/dispatches \
-d '{"ref": "main", "inputs": {"in_dev": "false", "software_download_url": "https://dl.szdamai.com/downloads/ubuntu_app_zh/HuaYoungApp_Ubuntu_10.0.533_zh_setup.deb"}}'