Пример #1
0
 def test_contacts_quxinli_0334(self):
     """公众号详情-置顶公众号"""
     official = OfficialAccountPage()
     official.click_officel_account()
     time.sleep(1)
     account_name = official.get_account_title()
     official.click_setting_button()
     time.sleep(1)
     # 点击置顶公众号
     official_detail = OfficialAccountDetailPage()
     official_detail.click_to_be_top()
     official.click_back_by_android(2)
     time.sleep(2)
     top_name = official.get_first_account()
     # 判断是否置顶
     time.sleep(1)
     self.assertEqual(account_name, top_name)
Пример #2
0
    def test_contacts_quxinli_0335(self):
        """公众号详情-查看历史资讯"""
        official = OfficialAccountPage()
        official.click_officel_account()
        time.sleep(1)
        official.click_setting_button()
        official_detail = OfficialAccountDetailPage()

        official_detail.click_read_old_message()
        official_detail.wait_for_page_load()
        if official_detail.is_contain_old_mes():
            official_detail.page_contain_time()
        else:
            official_detail.page_should_contain_text('无历史推送资讯')
Пример #3
0
 def tearDown_test_contacts_quxinli_0334():
     official = OfficialAccountPage()
     #返回公众号详情页面,取消置顶
     official.click_officel_account()
     official.click_setting_button()
     OfficialAccountDetailPage().click_to_be_top()
Пример #4
0
 def test_contacts_quxinli_0332(self):
     """公众号会话页面右上角设置按钮"""
     official = OfficialAccountPage()
     official.click_officel_account()
     official.click_setting_button()
     time.sleep(2)
     official_account_detail=OfficialAccountDetailPage()
     official_account_detail.page_contain_public_title_name()
     official_account_detail.page_contain_public_name()
     official_account_detail.page_contain_public_header()
     official_account_detail.page_contain_public_number()
     official_account_detail.page_contain_features()
     official_account_detail.page_contain_certification()
     official_account_detail.page_should_contain_text('置顶公众号')
     official_account_detail.page_should_contain_text('查看历史资讯')
     official_account_detail.page_should_contain_text('进入公众号')
     time.sleep(2)