From c1ec91cafb4b85d6d4fb553a9a7aea61e375ff13 Mon Sep 17 00:00:00 2001 From: jingjingxyk Date: Tue, 5 Dec 2023 03:13:52 +0800 Subject: [PATCH] update chromium-auto-test.sh --- .github/workflows/linux-x86_64.yaml | 1 + tools/chromium-auto-test.sh | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/linux-x86_64.yaml b/.github/workflows/linux-x86_64.yaml index b470faed..7465f8b8 100644 --- a/.github/workflows/linux-x86_64.yaml +++ b/.github/workflows/linux-x86_64.yaml @@ -106,6 +106,7 @@ jobs: # bash tools/chromium.sh --xvfb # bash tools/chromium.sh --headless nohup bash tools/chromium.sh --xvfb & + sleep 15 bash tools/chromium-auto-test.sh - name: Firefox Load Extension diff --git a/tools/chromium-auto-test.sh b/tools/chromium-auto-test.sh index 9505ed32..970ace29 100644 --- a/tools/chromium-auto-test.sh +++ b/tools/chromium-auto-test.sh @@ -18,12 +18,11 @@ cd ${__DIR__} # 自动测试 # 浏览器日志位于 nohup.out 文件 - -sleep 11 - # 参考: https://chromedevtools.github.io/devtools-protocol/ +# 显示CDP 可用参数 curl http://localhost:9222/json/protocol + curl http://localhost:9222/json/version exit 0