mozilla-b2g/gaia — pull request #14015 by viorelaioia (2013-11-25 13:32:20+00:00)
Title: Bug 942220 - Add explicit wait in tap_back in contact_details.py

I added a wait before tapping the back button because I ran test_edit_contact many times and I noticed that sometimes that button is pressed really quick, so we can't actually see the moment when it does it. Instead of self.wait_for_element_not_displayed(*self._back_button_locator) I could add self.wait_for_condition(lambda m: m.find_element(*self._back_button_locator).location['x'] == 320)
Let me know which option you think is the best. Thanks!