ATOmac - waitForWindowToAppear returns False everytime <p>I am using Atomac (<a href="https://pypi.python.org/pypi/atomac/1.1.0" rel="nofollow">https://pypi.python.org/pypi/atomac/1.1.0</a>) to automate a Mac application. I want to wait for a window to be appear(or disappear) and I saw in the documentations that are functions for this:(<a href="https://github.com/ldtp/pyatom/blob/master/atomac/AXClasses.py" rel="nofollow">https://github.com/ldtp/pyatom/blob/master/atomac/AXClasses.py</a>)</p> <p>However, when I am testing waitForWindowToAppear function, it always returns False, for example:</p> <pre><code>import atomac atomac.launchAppByBundleId("com.apple.Safari") app = atomac.getAppRefByBundleId("com.apple.Safari") window = app.waitForWindowToAppear("Safari", 10) print window #False </code></pre>