Skip to content

Commit

Permalink
Merge pull request #231 from bobsilverberg/browser_lan_fix
Browse files Browse the repository at this point in the history
Add wait for page title in an attempt to fix failing test
  • Loading branch information
stephendonner committed Jan 4, 2013
2 parents bb97c63 + 22a4ed2 commit d28beed
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gaiatest/tests/test_browser_lan.py
Expand Up @@ -12,6 +12,7 @@ class TestBrowserLAN(GaiaTestCase):
_url_button_locator = ("id", "url-button")
_throbber_locator = ("id", "throbber")
_browser_frame_locator = ('css selector', 'iframe[mozbrowser]')
_page_title_locator = ("id", "page-title")

def setUp(self):
GaiaTestCase.setUp(self)
Expand Down Expand Up @@ -40,7 +41,8 @@ def test_browser_lan(self):

self.marionette.switch_to_frame(browser_frame)

heading = self.marionette.find_element('id', 'page-title')
self.wait_for_element_present(*self._page_title_locator)
heading = self.marionette.find_element(*self._page_title_locator)
self.assertEqual(heading.text, 'We believe that the internet should be public, open and accessible.')

def tearDown(self):
Expand Down

0 comments on commit d28beed

Please sign in to comment.