Exemple #1
0
    def test_QY_0008(self):
        """和飞信套餐购买- 不勾选同意"""

        # 进入企业权益首页
        Preconditions.enter_enterprise_interests_page()
        eip = EnterpriseInterestsPage()
        # 点击增值服务
        eip.click_service()
        eip.wait_for_service_page_load()
        eip.click_text_by_name("和飞信套餐")
        eip.click_text_by_name("5元套餐包")
        eip.click_sure()
        time.sleep(2)
        # 1.是否弹出提示“请先阅读协议内容”
        self.assertEquals(eip.is_text_present("请先阅读协议内容"), True)
        eip.click_close()
        # 等待工作台首页加载
        wbp = WorkbenchPage()
        wbp.wait_for_workbench_page_load()
Exemple #2
0
    def test_QY_0007(self):
        """和飞信套餐购买"""

        # 进入企业权益首页
        Preconditions.enter_enterprise_interests_page()
        eip = EnterpriseInterestsPage()
        # 点击增值服务
        eip.click_service()
        eip.wait_for_service_page_load()
        eip.click_text_by_name("和飞信套餐")
        eip.click_text_by_name("5元套餐包")
        eip.click_agree_button()
        eip.click_sure()
        time.sleep(2)
        eip.click_sure_popup()
        # 1.等待支付收银台界面加载
        eip.wait_for_pay_page_load()
        eip.click_close()
        # 等待工作台首页加载
        wbp = WorkbenchPage()
        wbp.wait_for_workbench_page_load()