it should work in the limits of how marionette works but we should update the test to try to make it fail properly perhaps use displayed_app.
----- Original Message -----
From: Florin Strugariu <notifications@github.com>
To: mozilla/gaia-ui-tests <gaia-ui-tests@noreply.github.com>
Cc: Zac <zcampbell@mozilla.com>
Sent: Mon, 12 Aug 2013 06:46:23 -0700 (PDT)
Subject: Re: [gaia-ui-tests] Add switch_to_homescreen_frame to homescreen app object (#1235)

> 
> - # Wait for Gaia to insert the element into the page
> - self.wait_for_element_present(*self._homescreen_icon_locator)
> -
> - # check whether bookmark was added
> - while self._homescreen_has_more_pages:
> - self._go_to_next_page()
> - if self.is_element_displayed(*self._homescreen_icon_locator):
> - self._bookmark_added = True
> - break
> + self._bookmark_added = homescreen.is_app_installed(self.bookmark_title)

should this work if we have the add to home screen still displayed?
https://github.com/zacc/gaia-ui-tests-1/blob/302fbfb3092648be124f85d185257fabf132007b/gaiatest/apps/homescreen/app.py#L36

---
Reply to this email directly or view it on GitHub:
https://github.com/mozilla/gaia-ui-tests/pull/1235/files#r5709510