From 56dfc4f71ef558aaf2144af056c48988a0e37dff Mon Sep 17 00:00:00 2001 From: zhouke Date: Fri, 15 Jul 2022 18:03:42 +0800 Subject: [PATCH] MODIFY.Signed-off-by: . Signed-off-by: zhouke --- arkXtest/uitest/src/main/ets/test/Ability.test.ets | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arkXtest/uitest/src/main/ets/test/Ability.test.ets b/arkXtest/uitest/src/main/ets/test/Ability.test.ets index e2e6460f2..aeab0fd16 100644 --- a/arkXtest/uitest/src/main/ets/test/Ability.test.ets +++ b/arkXtest/uitest/src/main/ets/test/Ability.test.ets @@ -330,7 +330,8 @@ export default function abilityTest() { await driver.delayMs(waitUiReadyMs) let window = await driver.findWindow({bundleName:'com.example.windows'}) await window.resume() - await window.maximize() + let window2 = await driver.findWindow({bundleName:'com.example.windows'}) + await window2.maximize() await stopApplication('com.example.windows') }) -- GitLab