Skip to content

Commit

Permalink
Update get_register_command (#1483)
Browse files Browse the repository at this point in the history
  • Loading branch information
shweta83 committed Aug 26, 2024
1 parent e7ec818 commit f206e50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions airgun/entities/host.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand All @@ -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)
Expand Down

0 comments on commit f206e50

Please sign in to comment.