Example #1
0
 def test_contacts_quxinli_0330(self):
     """公众号会话页面发送链接消息"""
     official_account = OfficialAccountPage()
     official_account.click_input_box()
     keyword = "https://www.baidu.com/"
     official_account.input_message(keyword)
     official_account.click_send_button()
     time.sleep(1)
     official_account.click_send_detail(keyword)
     time.sleep(2)
     #返回通讯录页面
     official_account.click_back()
     official_account.click_back()
     OfficialAccountPage().click_back()
Example #2
0
 def test_contacts_quxinli_0330(self):
     """公众号会话页面发送链接消息"""
     ContactsPage().click_official_account_icon()
     time.sleep(1)
     OfficialAccountPage().select_one_account_by_name('和飞信新闻')
     official_account = OfficialAccountPage()
     official_account.click_input_box()
     keyword = "https://www.baidu.com/"
     official_account.input_message(keyword)
     official_account.click_send_button()
     time.sleep(1)
     official_account.click_send_detail(keyword)
     time.sleep(2)
     # 返回通讯录页面
     official_account.click_back_by_android(3)