Example #1
0
    def test_Conts_OfficialAccount_0002(self):
        """搜索公众号"""
        official_account = OfficialAccountPage()
        official_account.click_tag('订阅/服务号')
        official_account.click_add()

        search = SearchOfficialAccountPage()
        search.input_search_key('1')
        search.subscribe_first_items(12)
        print('test')
    def test_Conts_OfficialAccount_0002(self):
        """公众号列表为空"""
        conts_page = ContactsPage()
        conts_page.open_contacts_page()
        conts_page.click_official_account_icon()

        official_account = OfficialAccountPage()
        official_account.click_tag('订阅/服务号')
        official_account.click_add()

        search = SearchOfficialAccountPage()
        search.input_search_key('1')
        search.subscribe_first_items(12)
        print('test')
Example #3
0
    def test_msg_xiaoliping_B_0013(self):
        """消息列表订阅号红点显示"""

        mp = MessagePage()
        # 等待消息页加载
        mp.wait_for_page_load()
        # 切换到标签页:通讯录
        mp.open_contacts_page()
        cp = ContactsPage()
        time.sleep(2)
        # 进入公众号页面
        cp.click_official_account_icon()
        oap = OfficialAccountPage()
        oap.wait_for_page_load()
        # 进入搜索公众号页面
        oap.click_add()
        soap = SearchOfficialAccountPage()
        soap.wait_for_page_load()
        name = "移周刊"
        soap.input_search_key(name)