def test_YYTZ_0015(self): """点击顶部关闭按钮""" # 0.进入语音通知页面 wbp = WorkbenchPage() wbp.click_voice_notice() vnp = VoiceNoticePage() vnp.wait_for_page_loads("创建语音通知") # 1.点击点击右上角【?】 vnp.click_enter_more() vnp.wait_for_page_loads("语音通知使用指引") # 2.在其他有关闭按钮页面,点击顶部【x】 vnp.click_close_more() self.assertEquals(wbp.is_on_this_page(), True)
def enter_voice_announcement_page(reset=False): """从消息进入语音通知页面""" # 登录进入消息页面 LoginPreconditions.make_already_in_message_page(reset) mess = MessagePage() # 从消息进入组织架构页面 mess.open_workbench_page() workbench = WorkbenchPage() if workbench.is_on_welcome_page(): workbench.click_now_create_team() else: a = 0 while a < 10: workbench.wait_for_page_load() workbench.click_voice_notice() time.sleep(5) if workbench.is_text_present("认证失败"): current_mobile().back() a += 1 else: break vnp = VoiceNoticePage() vnp.wait_for_page_loads()
def test_CJHY_0001(self): """查看超级会议使用说明""" # 0.进入超级会议页面页面 wbp = WorkbenchPage() wbp.click_super_meeting() vnp = VoiceNoticePage() vnp.wait_for_page_loads("超级会议") # 1.点击点击右上角【?】 vnp.click_enter_more() vnp.wait_for_page_loads("超级会议使用说明") # 2.上下滑动浏览页面 for i in range(3): vnp.swipe_half_page_up() self.assertEquals(vnp.find_els_h5("会场管理"), True) vnp.swipe_half_page_down() # 3.点击返回 vnp.click_back() vnp.click_back()
def test_YYTZ_0001(self): """正常查看使用该指引""" # 0.进入语音通知页面 wbp = WorkbenchPage() wbp.click_voice_notice() vnp = VoiceNoticePage() vnp.wait_for_page_loads("创建语音通知") # 1.点击点击右上角【?】 vnp.click_enter_more() vnp.wait_for_page_loads("语音通知使用指引") # 2.上下滑动浏览页面 for i in range(3): vnp.swipe_half_page_up() self.assertEquals(vnp.find_els_h5("接听通知"), True) vnp.swipe_half_page_down() # 3.点击返回 vnp.click_back() vnp.click_back()