From 4819ff67e3aca1c53135f2b87d1c52425da8194b Mon Sep 17 00:00:00 2001 From: Viorela Ioia Date: Tue, 23 Sep 2014 16:29:46 +0300 Subject: [PATCH] Bug 1068619 - [v2.2] [v2.1] Investigate test_browser_search failure --- .../gaiatest/apps/homescreen/regions/search_panel.py | 3 +++ tests/python/gaia-ui-tests/gaiatest/apps/keyboard/app.py | 4 ++++ 2 files changed, 7 insertions(+) diff --git a/tests/python/gaia-ui-tests/gaiatest/apps/homescreen/regions/search_panel.py b/tests/python/gaia-ui-tests/gaiatest/apps/homescreen/regions/search_panel.py index 55d672704591..5fa85df7ab7a 100644 --- a/tests/python/gaia-ui-tests/gaiatest/apps/homescreen/regions/search_panel.py +++ b/tests/python/gaia-ui-tests/gaiatest/apps/homescreen/regions/search_panel.py @@ -29,8 +29,11 @@ def go_to_url(self, url): #TODO Remove hack once Bug 1062309 is fixed self.marionette.switch_to_frame() + self.wait_for_condition(lambda m: not self.keyboard.is_keyboard_displayed) + self.marionette.find_element(*self._rocketbar_input_locator).tap() + self.wait_for_condition(lambda m: self.keyboard.is_keyboard_displayed) self.keyboard.tap_enter() self.wait_for_condition(lambda m: url in self.apps.displayed_app.name) diff --git a/tests/python/gaia-ui-tests/gaiatest/apps/keyboard/app.py b/tests/python/gaia-ui-tests/gaiatest/apps/keyboard/app.py index 13b33d9ea1bc..d2bfa4bd592b 100644 --- a/tests/python/gaia-ui-tests/gaiatest/apps/keyboard/app.py +++ b/tests/python/gaia-ui-tests/gaiatest/apps/keyboard/app.py @@ -407,3 +407,7 @@ def a11y_first_predictive_word_click(self): self.accessibility.click( self.marionette.find_element(*self._predicted_word_locator)) self.apps.switch_to_displayed_app() + + @property + def is_keyboard_displayed(self): + return 'hide' not in self.marionette.find_element(*self._keyboards_locator).get_attribute('class')