~pkunal-parmar/ubuntu-calendar-app/RecurranceField

« back to all changes in this revision

Viewing changes to tests/autopilot/calendar_app/emulators/main_view.py

  • Committer: Kunal Parmar
  • Date: 2013-09-03 23:46:17 UTC
  • mfrom: (106 trunk)
  • mto: This revision was merged to the branch mainline in revision 108.
  • Revision ID: pkunal.parmar@gmail.com-20130903234617-jvsxsf9whrl0m6mx
Trunk code merged

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
        return self.select_single("DayView")
27
27
 
28
28
    def get_title_label(self, title):
29
 
        return self.select_many("Label", text=title)[0]
 
29
        labels = self.select_many("Label", text=title)
 
30
        if (len(labels) > 0):
 
31
            return labels[0]
 
32
        else:
 
33
            return None
30
34
 
31
35
    def get_new_event(self):
32
36
        return self.select_single("NewEvent")