Skip to content

Commit

Permalink
wait for permission details to be visibile
Browse files Browse the repository at this point in the history
  • Loading branch information
bebef1987 committed Sep 13, 2013
1 parent e730906 commit 0447f18
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions gaiatest/apps/settings/regions/app_permissions.py
Expand Up @@ -29,6 +29,11 @@ class AppPermissionsDetails(Base):
_section_locator = (By.ID, 'appPermissions-details')
_permissions_locator = (By.CSS_SELECTOR, 'p[data-l10n-id="perm-geolocation"]')

def __init__(self, marionette):
Base.__init__(self, marionette)
section = self.marionette.find_element(*self._section_locator)
self.wait_for_condition(lambda m: section.location['x'] == 0)

@property
def is_geolocation_listed(self):
return self.marionette.find_element(*self._permissions_locator).is_displayed()

0 comments on commit 0447f18

Please sign in to comment.