本文整理汇总了Python中gaiatest.apps.email.app.Email.wait_for_header_area方法的典型用法代码示例。如果您正苦于以下问题:Python Email.wait_for_header_area方法的具体用法?Python Email.wait_for_header_area怎么用?Python Email.wait_for_header_area使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类gaiatest.apps.email.app.Email
的用法示例。
在下文中一共展示了Email.wait_for_header_area方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: TestSetupManualEmail
# 需要导入模块: from gaiatest.apps.email.app import Email [as 别名]
# 或者: from gaiatest.apps.email.app.Email import wait_for_header_area [as 别名]
class TestSetupManualEmail(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.connect_to_network()
self.email = Email(self.marionette)
self.email.launch()
def test_setup_imap_email(self):
# setup IMAP account
setup = self.email.tap_manual_setup()
setup.type_name(self.testvars['email']['IMAP']['name'])
setup.type_email(self.testvars['email']['IMAP']['email'])
setup.type_password(self.testvars['email']['IMAP']['password'])
setup.select_account_type('IMAP+SMTP')
setup.type_imap_hostname(self.testvars['email']['IMAP']['imap_hostname'])
setup.type_imap_name(self.testvars['email']['IMAP']['imap_name'])
setup.type_imap_port(self.testvars['email']['IMAP']['imap_port'])
setup.type_smtp_hostname(self.testvars['email']['IMAP']['smtp_hostname'])
setup.type_smtp_name(self.testvars['email']['IMAP']['smtp_name'])
setup.type_smtp_port(self.testvars['email']['IMAP']['smtp_port'])
setup.tap_next()
setup.wait_for_setup_complete()
setup.tap_continue()
self.email.wait_for_header_area()
# check header area
self.assertTrue(self.email.header.is_compose_visible)
self.assertTrue(self.email.header.is_menu_visible)
self.assertEqual(self.email.header.label, 'Inbox')
# check toolbar area
self.assertTrue(self.email.toolbar.is_edit_visible)
self.assertTrue(self.email.toolbar.is_refresh_visible)
# check account has emails
self.email.wait_for_emails_to_sync()
self.assertGreater(len(self.email.mails), 0)
def tearDown(self):
GaiaTestCase.tearDown(self)
示例2: tap_send
# 需要导入模块: from gaiatest.apps.email.app import Email [as 别名]
# 或者: from gaiatest.apps.email.app.Email import wait_for_header_area [as 别名]
def tap_send(self):
self.marionette.find_element(*self._send_locator).tap()
from gaiatest.apps.email.app import Email
email = Email(self.marionette)
email.wait_for_header_area()
return email