示例#1
0
 def test_contacts_quxinli_0325(self):
     """公众号会话页面-已配置底部菜单栏的公众号"""
     ContactsPage().click_official_account_icon()
     time.sleep(1)
     OfficialAccountPage().select_one_account_by_name('和飞信')
     # 判断页面包含的元素
     official_account = OfficialAccountPage()
     time.sleep(2)
     official_account.page_should_contain_text('和飞信')
     official_account.page_contain_setting()
     official_account.page_contain_keyboard()
     official_account.page_should_contain_element_menu()
     # 点击底部菜单,可以进入到菜单详情页
     official_account.click_menu_name2()
     time.sleep(1)
     official_account.page_should_contain_text('多方电话')
     official_account.click_menu_detail_name1()
     time.sleep(4)
     official_account.click_menu_detail_back()
     # 点击键盘标志,页面显示输入框等
     official_account.click_keyboard()
     official_account.page_contain_input_box()
     # official_account.page_contain_expresssion()
     official_account.page_contain_send_button()
     official_account.send_btn_is_clickable()
     time.sleep(2)
     # 再次点击键盘,又展示底部菜单
     official_account.click_keyboard()
     official_account.page_should_contain_element_menu()
     time.sleep(2)
     # 返回消息页面
     official_account.click_back()
     OfficialAccountPage().click_back()
     ContactsPage().click_message_icon()
示例#2
0
 def test_contacts_quxinli_0324(self):
     """公众号会话页面-未配置底部菜单栏的公众号"""
     ContactsPage().click_official_account_icon()
     time.sleep(1)
     OfficialAccountPage().select_one_account_by_name('和飞信新闻')
     # 公众号详情页(未配置底部菜单栏)
     official_account = OfficialAccountPage()
     time.sleep(2)
     official_account.page_should_contain_text('和飞信新闻')
     official_account.page_contain_setting()
     official_account.page_contain_input_box()
     # official_account.page_contain_expresssion()
     official_account.page_contain_send_button()
     official_account.send_btn_is_clickable()
     # 返回通讯录页面
     official_account.click_back()
     OfficialAccountPage().click_back()