本文整理汇总了Python中OWDTestToolkit.apps.contacts.Contacts.select_search_result_several_phones方法的典型用法代码示例。如果您正苦于以下问题:Python Contacts.select_search_result_several_phones方法的具体用法?Python Contacts.select_search_result_several_phones怎么用?Python Contacts.select_search_result_several_phones使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类OWDTestToolkit.apps.contacts.Contacts
的用法示例。
在下文中一共展示了Contacts.select_search_result_several_phones方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: test_main
# 需要导入模块: from OWDTestToolkit.apps.contacts import Contacts [as 别名]
# 或者: from OWDTestToolkit.apps.contacts.Contacts import select_search_result_several_phones [as 别名]
class test_main(GaiaTestCase):
def setUp(self):
GaiaTestCase.setUp(self)
self.UTILS = UTILS(self)
self.messages = Messages(self)
self.contacts = Contacts(self)
self.contact = MockContact(tel=[{'type': 'Mobile', 'value': '111111111'},
{'type': 'Mobile', 'value': '222222222'}])
self.UTILS.general.insertContact(self.contact)
def tearDown(self):
self.UTILS.reporting.reportResults()
GaiaTestCase.tearDown(self)
def test_run(self):
self.messages.launch()
# Type a message containing the required string
self.messages.startNewSMS()
self.messages.enterSMSMsg("Test message")
# Search for our contact.
self.messages.selectAddContactButton()
self.UTILS.iframe.switchToFrame(*DOM.Contacts.frame_locator)
self.contacts.search(self.contact['name'])
self.contacts.select_search_result_several_phones(self.contact['name'],
self.contact['tel'][0]['value'], cancel=True)