Skip to content

Commit

Permalink
Added sleep for stability
Browse files Browse the repository at this point in the history
  • Loading branch information
LadislavVasina1 authored and pondrejk committed Feb 15, 2024
1 parent c2887b0 commit 8d6120c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airgun/entities/job_invocation.py
Original file line number Diff line number Diff line change
Expand Up @@ -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')
Expand All @@ -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()
Expand Down

0 comments on commit 8d6120c

Please sign in to comment.