diff --git a/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets b/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets index 8b1994ebac6db56add8a511f9edf68e2a3479e6e..f83fcea06c81abbf49173ba5bcdd3d0a5345aada 100644 --- a/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets +++ b/ability/ability_runtime/actssupportfunction/actsonandoffscreentest/entry/src/main/ets/test/OnAndOffScreenTest.test.ets @@ -54,8 +54,11 @@ export default function OnAndOffScreenTest() { async function slideScreen(TAG) { console.log(TAG + "slideScreen start"); var driver = UiDriver.create(); - await driver.swipe(1000, 3000, 1000, 500, 1200); - await driver.delayMs(500); + await driver.swipe(1000, 3000, 1000, 500, 1200).then((data) => { + console.log(TAG + "swipe : " + JSON.stringify(data)); + }).catch((error) => { + console.log(TAG + "swipe error = " + JSON.stringify(error)); + }) console.log(TAG + "slideScreen end"); }