def tap_first_song(self): self.switch_to_active_view() song = Wait(self.marionette).until( expected.element_present(*self._first_song_locator)) song.tap() self.apps.switch_to_displayed_app() return PlayerView(self.marionette)
def tap_song(self, filename): self.marionette.switch_to_frame( self.marionette.find_element(*self._active_view_locator)) _pick_tile_locator = (By.CSS_SELECTOR, '.tile[data-file-path$="{}"]'.format(filename)) self.marionette.find_element(*_pick_tile_locator).tap() self.apps.switch_to_displayed_app() return PlayerView(self.marionette)
def tap_first_song(self): self.switch_to_active_view() self.marionette.find_element(*self._first_media_link_locator).tap() self.apps.switch_to_displayed_app() return PlayerView(self.marionette)
def tap_play(self): play = Wait(self.marionette).until( expected.element_present(*self._play_control_locator)) # TODO: Change this to a simple tap when bug 862156 is fixed Actions(self.marionette).tap(play).perform() return PlayerView(self.marionette)
def tap_first_song(self): self.marionette.find_element(*self._media_link_locator).tap() return PlayerView(self.marionette)
def tap_play(self): play_button = self.wait_for_element_present( *self._play_control_locator) # TODO: Change this to a simple tap when bug 862156 is fixed Actions(self.marionette).tap(play_button).perform() return PlayerView(self.marionette)
def tap_sub_song(self, order): sub_tiles = Wait(self.marionette).until( expected.elements_present(*self._sub_tile_locator)) sub_tiles[order].tap() return PlayerView(self.marionette)
def tap_main_song(self): self.marionette.find_element(*self._main_tile_locator).tap() return PlayerView(self.marionette)