Beispiel #1
0
    def tap_collection(self, name):
        el = self.marionette.find_element(self._collection_locator[0],
                                          self._collection_locator[1] % name)
        el.tap()

        from gaiatest.apps.homescreen.regions.collections import Collection
        return Collection(self.marionette)
Beispiel #2
0
 def tap_collection(self, collection_name):
     for root_el in self.marionette.find_elements(*self._homescreen_all_icons_locator):
         if root_el.text == collection_name:
             # TODO bug 1043293 introduced a timing/tap race issue here
             time.sleep(0.5)
             root_el.tap()
             from gaiatest.apps.homescreen.regions.collections import Collection
             return Collection(self.marionette)
Beispiel #3
0
 def tap_collection(self, collection_name):
     for root_el in self.marionette.find_elements(
             *self._homescreen_all_icons_locator):
         if root_el.text == collection_name:
             self.marionette.execute_script(
                 'arguments[0].scrollIntoView(false);', [root_el])
             root_el.tap()
             from gaiatest.apps.homescreen.regions.collections import Collection
             return Collection(self.marionette)
Beispiel #4
0
 def tap_collection(self, collection_name):
     for root_el in self.marionette.find_elements(*self._homescreen_all_icons_locator):
         if root_el.text == collection_name:
             self.marionette.execute_script(
                 'arguments[0].scrollIntoView(false);', [root_el])
             # TODO bug 1043293 introduced a timing/tap race issue here
             time.sleep(0.5)
             root_el.tap()
             from gaiatest.apps.homescreen.regions.collections import Collection
             return Collection(self.marionette)