def del_policy_n(self, n): #点击页面上强制网络门户 CPControl.CP_menu(self) #点击删除按钮 CPControl.del_button(self, n) #弹出的提示窗口中,点击确认 CPControl.notice_ok(self) CPControl.apply(self)
def del_many_policys(self, start_n, end_n): #点击页面上强制网络门户 CPControl.CP_menu(self) for i in range(start_n, end_n): #点击删除按钮 CPControl.del_button(self, i) #弹出的提示窗口中,点击确认 CPControl.notice_ok(self) CPControl.apply(self)
def check_del_policy_success(self, n, name): #点击页面上强制网络门户 CPControl.CP_menu(self) #点击删除按钮 CPControl.del_button(self, n) CPControl.notice_ok(self) CPControl.apply(self) result = CPControl.get_titlediv(self) if name not in result: return True else: return False