~elopio/gallery-app/revert_workaround-1302706-click_toolbar_button_failure

« back to all changes in this revision

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

  • Committer: Leo Arias
  • Date: 2015-05-15 08:05:23 UTC
  • mfrom: (954.1.241 gallery-app)
  • Revision ID: leo.arias@canonical.com-20150515080523-i2of3vr8h7dioj59
Now the toolbar object is not needed at all.

Show diffs side-by-side

added added

removed removed

Lines of Context:
5
5
# under the terms of the GNU General Public License version 3, as published
6
6
# by the Free Software Foundation.
7
7
 
8
 
from gallery_utils import GalleryUtils
 
8
from gallery_app.emulators.gallery_utils import GalleryUtils
9
9
 
10
10
 
11
11
class PhotosView(GalleryUtils):
15
15
 
16
16
    def get_first_photo_in_photos_view(self):
17
17
        """Returns the very first photo in the photos view."""
18
 
        return self.select_many_retry("QQuickItem",
19
 
                                    objectName="allPotosGridPhoto")[0]
 
18
        return self.select_many_retry(
 
19
            "QQuickItem",
 
20
            objectName="allPotosGridPhoto")[0]
20
21
 
21
22
    def number_of_photos(self):
22
23
        """Returns the number of events"""