diff --git a/airgun/entities/hostcollection.py b/airgun/entities/hostcollection.py index d9f411238..19b61af0f 100644 --- a/airgun/entities/hostcollection.py +++ b/airgun/entities/hostcollection.py @@ -1,4 +1,7 @@ +import time + from navmazing import NavigateToSibling +from selenium.webdriver.common.by import By from wait_for import wait_for from airgun.entities.base import BaseEntity @@ -105,9 +108,13 @@ def manage_packages( # After this step the user is redirected to remote execution job # create view. job_create_view = HostCollectionActionRemoteExecutionJobCreate(view.browser) + self.browser.plugin.ensure_page_safe(timeout='5s') job_create_view.fill(job_values) - job_create_view.submit.click() + submit = self.browser.selenium.find_element(By.XPATH, './/input[@value="Submit"]') + submit.click() + # wait for the job deatils to load + time.sleep(3) # After this step the user is redirected to job status view. job_status_view = JobInvocationStatusView(view.browser) wait_for(