appium / appium-mac2-driver

Next-gen Appium macOS driver, backed by Apple XCTest
Apache License 2.0
115 stars 24 forks source link

How can I determine whether the UI is stable after the corresponding action. #289

Closed HaoWShi closed 3 months ago

HaoWShi commented 3 months ago

Is there a result or event that can be used to determine whether the UI is stable after I click a UI control or open a page? The result or event does not need to be accurate. For example, when I open the system settings app, how do I tell if the settings page is loaded? Also, when I click on the menu item for the settings app, how do I know that the page has finished switching?

jlipps commented 3 months ago

Wait until an element is present that you know will only be present when the view has fully loaded.