diff --git a/arkXtest/uitest/src/main/ets/test/Ability.test.ets b/arkXtest/uitest/src/main/ets/test/Ability.test.ets index e2e6460f202bc9cc4f1da1aec260c7b08c1b7775..aeab0fd164aded1888c4ef1d391a83ce87577b3c 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') })