def do_login_zixun_manager(self, base_config_path): Service.open_page(self.driver, base_config_path) info = Utility.get_json(base_config_path) self.input_name(info['username_zixun_manager']) self.input_upass(info['password_zixun_manager']) self.input_vfcode(info['verifycode']) self.click_button()
def do_login(self, base_config_path, login_data): Service.open_page(self.driver, base_config_path) self.input_name(login_data['username']) self.input_upass(login_data['password']) self.input_vfcode(login_data['verfifycode']) self.click_button()