Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Merge pull request #27197 from bebef1987/phone
Browse files Browse the repository at this point in the history
Bug 1118728 - Update Phone app object to wait for the app to launch
  • Loading branch information
phoenix1moz committed Jan 8, 2015
2 parents 8c0d0e9 + 7801629 commit ee0f820
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions tests/python/gaia-ui-tests/gaiatest/apps/phone/app.py
Expand Up @@ -3,6 +3,8 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.

from marionette.by import By
from marionette import expected
from marionette import Wait
from gaiatest.apps.base import Base


Expand All @@ -22,6 +24,12 @@ class Phone(Base):
_contacts_toolbar_locator = (By.ID, 'iframe-contacts-container')
_contacts_frame_locator = (By.ID, 'iframe-contacts')

def launch(self):
Base.launch(self)

Wait(self.marionette).until(
expected.element_displayed(*self._keypad_toolbar_button_locator))

@property
def keypad(self):
from gaiatest.apps.phone.regions.keypad import Keypad
Expand Down

0 comments on commit ee0f820

Please sign in to comment.