Closed alekseijershov closed 4 years ago
I don't use wait methods myself, but my understanding is you call the waitFor and it will block until the event occurs.
Here's an example use case
Finder
is running and you have an AppRef to finder.waitForCreation
methodwaitForCreation
stops waiting and code execution continueshttps://github.com/daveenguyen/atomacos/blob/master/tests/test_atomacos.py#L151
Hi! I trying to understand how methods which have wait functionality works For example, I’m trying to wait when system preferences windows is appears and every time timeout is work and return value is None Example:
os.system('open x-apple.systempreferences:com.apple.preference.security?General') main_window = atomacos.getAppRefByBundleId('com.apple.systempreferences') main_window.waitForWindowToAppear('System Preferences')
Regards, AJ