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()
def test_QY_0010(self): """查看增值服务协议""" # 进入企业权益首页 Preconditions.enter_enterprise_interests_page() eip = EnterpriseInterestsPage() # 解决工作台不稳定问题 eip.click_back() wbp = WorkbenchPage() wbp.wait_for_workbench_page_load() wbp.click_rights() eip.wait_for_page_load() # 点击增值服务 eip.click_service() eip.wait_for_service_page_load() # 点击增值服务协议 eip.click_service_agreement() time.sleep(2) # 1.是否打开协议内容 self.assertEquals(eip.is_text_present("欢迎您使用中国移动和飞信增值服务"), True) eip.click_close() # 等待工作台首页加载 wbp.wait_for_workbench_page_load()