def get_result_fail(driver): """获取登录失败后“账号或密码错误”字样""" dry = Base(driver) result = dry.get_Text(loc_zhanghaohemimacuowu) return result
def get_result_success(driver): """获取登录成功后的“MPen出版系统”字样""" dry = Base(driver) result = dry.get_Text(loc_chubanxitong) return result