From d35de635862a7f8f15eafcca69b66fa20c0ffe13 Mon Sep 17 00:00:00 2001 From: yihuineng <471110230@qq.com> Date: Thu, 17 Oct 2024 16:13:13 +0800 Subject: [PATCH 1/2] =?UTF-8?q?chore:=20=E5=A2=9E=E5=BC=BA=E6=89=A7?= =?UTF-8?q?=E8=A1=8C=E7=A8=B3=E5=AE=9A=E6=80=A7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lib/controllers.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/controllers.js b/lib/controllers.js index 39f15fb..471cf3b 100644 --- a/lib/controllers.js +++ b/lib/controllers.js @@ -21,7 +21,9 @@ const sendJSCommand = async function(script) { let res; await implicitWaitForCondition.call(this, async () => { + await (this.pageIframe || this.page).waitForLoadState(); res = await (this.pageIframe || this.page).evaluate(command); + await (this.pageIframe || this.page).waitForLoadState(); return !!res; }); From e7fb7cfa23ee522c2ae7280cbe262ab61b0ddccb Mon Sep 17 00:00:00 2001 From: yihuineng <471110230@qq.com> Date: Thu, 17 Oct 2024 16:14:20 +0800 Subject: [PATCH 2/2] =?UTF-8?q?chore:=20=E6=9B=B4=E6=96=B0=E7=89=88?= =?UTF-8?q?=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 3eed06c..7431028 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "macaca-playwright", - "version": "1.12.0", + "version": "1.12.1", "description": "Macaca Playwright driver", "keywords": [ "playwright",