def test_widget_calculate_script(self): '''widget_计算脚本''' mp = MainPage(self.driver) mp.switch_to_iframe() mp.widget_calculate_script() mp.switch_to_parent() mp.switch_to_iframe() self.assertIn('新闻', mp.get_fastentry_font_return(), msg='打开widget_计算脚本校验不通过')
def test_open_fastentry_img(self): '''打开widget_快速入口_icon''' mp = MainPage(self.driver) mp.close_righttop_message() # 关闭消息提示 mp.switch_to_iframe() mp.fast_entry_img() mp.switch_to_parent() mp.switch_to_iframe() self.assertIn('新闻', mp.get_fastentry_font_return(), msg='打开widget_快速入口_icon校验不通过')