diff --git a/arkXtest/uitest/src/main/ets/test/uitest.test.ets b/arkXtest/uitest/src/main/ets/test/uitest.test.ets index bc9faed04bac6591d37d71924c5a6e0893227cf8..d69fd2c97d20f418c299f1c67a5b5abcf2e91572 100644 --- a/arkXtest/uitest/src/main/ets/test/uitest.test.ets +++ b/arkXtest/uitest/src/main/ets/test/uitest.test.ets @@ -502,10 +502,8 @@ export default function uiTest() { let driver = UiDriver.create() await driver.delayMs(waitUiReadyMs) let scrollBar = await driver.findComponent(BY.type('Scroll')) - let text = await scrollBar.scrollSearch(BY.text('4')) - await driver.delayMs(waitUiReadyMs) - expect(text == null).assertTrue() - await scrollBar.scrollToTop() + let button = await scrollBar.scrollSearch(BY.text('next page')) + expect(await button.getText() == 'next page').assertTrue() }) /*