mozilla/gaia-ui-tests — pull request #23 by malini (2012-11-19 18:38:52+00:00)
Title: Add smarter launch/switch_to_frame functions and add a little more test stability

This rolls up all the changes here:https://github.com/zacc/gaia-ui-tests/pull/43 in a neat package.

Essentially, I added a smarter switch_to_frame, which will wait for a particular url (or !about:blank, if nothing is passed) to load in the switched frame. Switch to frame will automatically be called on the launched app when you use launch() unless you set the switch_to_frame optional argument to false.

I updated the tests to use the new launch function, and added a few wait_for calls, since I had intermittent failures due to acting on elements that aren't yet there/visible.