From 8d6120cf7b695e55df90b0857df636398a8636e2 Mon Sep 17 00:00:00 2001 From: Ladislav Vasina Date: Thu, 15 Feb 2024 08:08:30 +0100 Subject: [PATCH] Added sleep for stability --- airgun/entities/job_invocation.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airgun/entities/job_invocation.py b/airgun/entities/job_invocation.py index 9e0fd7de1..ecadb284f 100644 --- a/airgun/entities/job_invocation.py +++ b/airgun/entities/job_invocation.py @@ -47,12 +47,14 @@ def wait_job_invocation_state(self, entity_name, host_name, expected_state='succ def submit_prefilled_view(self): """This entity loads pre filled job invocation view and submits it.""" + time.sleep(3) view = JobInvocationCreateView(self.browser) time.sleep(3) view.submit.click() def get_job_category_and_template(self): """Reads selected job category and template for job invocation.""" + time.sleep(3) view = JobInvocationCreateView(self.browser) time.sleep(3) element = self.browser.selenium.find_element(By.XPATH, '//div/input') @@ -62,6 +64,7 @@ def get_job_category_and_template(self): def get_targeted_hosts(self): """Read targeted hosts for job invocation.""" + time.sleep(3) view = JobInvocationCreateView(self.browser) time.sleep(3) return view.target_hosts_and_inputs.read()