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 #16899 from zacc/bug_979768
Browse files Browse the repository at this point in the history
Bug 979768 - Ignore StaleElementException in test_settings_wifi
  • Loading branch information
Zac committed Mar 5, 2014
2 parents da5e62b + 63be238 commit 6f21a05
Showing 1 changed file with 4 additions and 3 deletions.
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 Wait
from marionette.errors import StaleElementException
from gaiatest.apps.base import Base


Expand Down Expand Up @@ -44,6 +46,5 @@ def connect_to_network(self, network_info):
password_input.send_keys(password)
ok_button.tap()

self.wait_for_condition(
lambda m: m.find_element(*self._connected_message_locator).text == "Connected",
timeout = max(self.marionette.timeout and self.marionette.timeout / 1000, 60))
Wait(self.marionette, timeout=60, ignored_exceptions=StaleElementException).until(
lambda m: m.find_element(*self._connected_message_locator).text == "Connected")

0 comments on commit 6f21a05

Please sign in to comment.