def username_text(self, expect_value): """ 获取导航栏右侧的用户姓名 :return: """ if api.wait_text_equal(self.username, expect_value): return True else: api.save_page_img('首页用户名显示错误') return False
def home_link_text(self, expect_value): """ 获取首页链接文本 :return: """ if api.wait_text_equal(self.home_link, expect_value): return True else: api.save_page_img('首页链接文本显示错误') return False