From f206e50afe264792c7de5ac4c9029d725cfb99d7 Mon Sep 17 00:00:00 2001 From: Shweta Singh Date: Mon, 26 Aug 2024 19:37:38 +0530 Subject: [PATCH] Update get_register_command (#1483) --- airgun/entities/host.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airgun/entities/host.py b/airgun/entities/host.py index 635a477ba..4b673bc86 100644 --- a/airgun/entities/host.py +++ b/airgun/entities/host.py @@ -53,6 +53,7 @@ def create(self, values): def get_register_command(self, values=None, full_read=None): """Get curl command generated on Register Host page""" view = self.navigate_to(self, 'Register') + self.browser.plugin.ensure_page_safe() if values is not None: if ('advanced.repository_gpg_key_url' in values) or ('advanced.repository' in values): view.wait_displayed() @@ -64,6 +65,7 @@ def get_register_command(self, values=None, full_read=None): view.repository_gpg_key_url.fill(values['advanced.repository_gpg_key_url']) view.repository_list_confirm.click() view = self.navigate_to(self, 'Register') + self.browser.plugin.ensure_page_safe() view.fill(values) if view.general.activation_keys.read(): self.browser.click(view.generate_command)