Exemplo n.º 1
0
 def test_msg_huangcaizui_A_0078(self):
     """消息-一对一消息会话-设置页面查找不存在的聊天内容"""
     Preconditions.enter_single_chat_page("大佬2")
     single = SingleChatPage()
     mess = MessagePage()
     chat_set = SingleChatSetPage()
     findchat = FindChatRecordPage()
     single.click_setting()
     chat_set.is_on_this_page()
     chat_set.search_chat_record()
     findchat.wait_for_page_loads()
     findchat.input_search_message('ADDWOQWIQWOPPQWIDIWQDQW')
     mess.page_should_contain_element((MobileBy.XPATH, '//*[@text ="无搜索结果"]'))
Exemplo n.º 2
0
 def test_msg_hanjiabin_0195(self):
     """名片消息——单聊——发出名片后--消息界面——长按"""
     mess = MessagePage()
     ChatMorePage().close_more()
     ChatMorePage().click_card()
     SelectContactsPage().click_one_contact_631("给个名片2")
     send_card = Send_CardNamePage()
     send_card.click_share_btn()
     send_card.press_mess('给个名片2')
     mess.click_element((MobileBy.XPATH, '//*[@text="多选"]'))
     mess.page_should_contain_element((MobileBy.XPATH, '//*[@text="删除"]'))
     mess.page_should_contain_element((MobileBy.XPATH, '//*[@text="转发"]'))
     mess.click_element((MobileBy.XPATH, '//*[@text="删除"]'))
Exemplo n.º 3
0
 def test_msg_huangcaizui_A_0182(self):
     """自己撤回文本消息,是否会起新的头像"""
     Preconditions.enter_single_chat_page("大佬2")
     single = SingleChatPage()
     mess = MessagePage()
     # 如果当前页面不存在消息,发送一条消息
     if single._is_element_present((MobileBy.XPATH, '//*[@text ="呵呵哒"]')):
         single.press_mess('呵呵哒')
         mess.click_element((MobileBy.XPATH, '//*[@text ="删除"]'))
     single.input_text_message("呵呵哒")
     single.send_text()
     single.press_mess('呵呵哒')
     mess.click_element((MobileBy.XPATH, '//*[@text ="撤回"]'))
     # single.click_i_know()
     time.sleep(3)
     mess.page_should_contain_element((MobileBy.XPATH, '//*[@text ="你撤回了一条信息"]'))