~bfiller/gallery-app/revert-1245

« back to all changes in this revision

Viewing changes to tests/autopilot/gallery_app/emulators/picker_screen.py

  • Committer: CI Train Bot
  • Author(s): Arthur Mello
  • Date: 2015-11-06 14:05:15 UTC
  • mfrom: (1241.1.30 gallery-app-sdk_1_3)
  • Revision ID: ci-train-bot@canonical.com-20151106140515-y27n4x5nt1ajn3jy
Update QML code to work with Ubuntu.Components 1.3 Fixes: #1508363
Approved by: Renato Araujo Oliveira Filho

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
class PickerScreen(toolkit_emulators.MainView):
13
13
 
14
14
    def pick_button(self):
15
 
        return self.select_single(objectName="pickButton_header_button")
 
15
        return self.select_single(objectName="pickButton_action_button")
16
16
 
17
17
    def get_photos_tab_button(self):
18
18
        """Returns the photos tab."""
39
39
        Return the Page object representing the photos
40
40
        """
41
41
        self.switch_to_tab('photosTab')
42
 
        return self.select_single(Page11, objectName='photosPage')
 
42
        return self.select_single(Page, objectName='photosPage')
43
43
 
44
44
    def click_pick_button(self):
45
45
        """Click on the pick button"""
46
46
        self.pointing_device.click_object(self.pick_button())
47
47
 
48
48
 
49
 
class Page11(PickerScreen):
 
49
class Page(PickerScreen):
50
50
    """Class to represent photos page view from picker screen"""
51
51
 
52
52
    def _get_named_photo_element(self, photo_name):