Ejemplo n.º 1
0
 def test2_mark_as_unread(self):
     """测试随机批量未读标记为已读"""
     # 快捷登录网页
     pl = PageLogin(self.driver)
     pl.quick_login()
     # 进入收件箱
     ree = ReceiveEmail(self.driver)
     ree.goto_inbox()
     # 随机批量勾选:暂定三个
     self.driver.switch_to.frame("mainFrame")
     ree.check_multi(1)
     # 标记为未读
     ree.mark_as_read()
     sleep(2)
     # 未读邮件统计
     assert (self.driver.find_element_by_id("_ur_c").text == "21"), "标记未读失败"
Ejemplo n.º 2
0
 def test3_mark_as_unread(self):
     """按发件人姓名标记为已读"""
     # 快捷登录网页
     pl = PageLogin(self.driver)
     pl.quick_login()
     # 进入收件箱
     ree = ReceiveEmail(self.driver)
     ree.goto_inbox()
     # 按发件人姓名勾选
     self.driver.switch_to.frame("mainFrame")
     ree.check_by_sender("罗江华", 1)
     # 标记为未读
     ree.mark_as_read()
     sleep(2)
     # 未读邮件统计
     # assert(self.driver.find_element_by_id("_ur_c").text < "21"), "标记未读失败"
     ree.verify_no_unread()