~chris.gagnon/messaging-app/autopilot-tests-with-contacts

« back to all changes in this revision

Viewing changes to tests/autopilot/messaging_app/emulators.py

  • Committer: chris.gagnon
  • Date: 2014-02-14 19:49:30 UTC
  • Revision ID: chris.gagnon@canonical.com-20140214194930-68hcwsb8swlh6kit
remove toolbar from message page object, it's in the main view and going away.

Show diffs side-by-side

added added

removed removed

Lines of Context:
340
340
 
341
341
        return self.select_single('Button', text='Send')
342
342
 
343
 
    def get_toolbar_back_button(self):
344
 
        """Returns toolbar button with objectName back_toolbar_button"""
345
 
 
346
 
        return self.select_single(
347
 
            'ActionItem',
348
 
            objectName='back_toolbar_button',
349
 
        )
350
 
 
351
 
    def get_toolbar_select_messages_button(self):
352
 
        """Returns toolbar button with objectName selectMessagesButton"""
353
 
 
354
 
        return self.select_single(
355
 
            'ActionItem',
356
 
            objectName='selectMessagesButton',
357
 
        )
358
 
 
359
 
    def get_toolbar_add_contact_button(self):
360
 
        """Returns toolbar button with objectName addContactButton"""
361
 
 
362
 
        return self.select_single(
363
 
            'ActionItem',
364
 
            objectName='addContactButton',
365
 
        )
366
 
 
367
 
    def get_toolbar_contact_profile_button(self):
368
 
        """Returns toolbar button with objectName contactProfileButton"""
369
 
 
370
 
        return self.select_single(
371
 
            'ActionItem',
372
 
            objectName='contactProfileButton',
373
 
        )
374
 
 
375
 
    def get_toolbar_contact_call_button(self):
376
 
        """Returns toolbar button with objectName contactCallButton"""
377
 
 
378
 
        return self.select_single(
379
 
            'ActionItem',
380
 
            objectName='contactCallButton',
381
 
        )
382
 
 
383
343
    def type_message(self, message):
384
344
        """Select and type message in new message text area in messages page
385
345