From d75c5a726f7e5e6fe9afbc0582e0017cbe08d93a Mon Sep 17 00:00:00 2001 From: Peter Ondrejka Date: Thu, 12 Sep 2024 17:48:27 +0200 Subject: [PATCH] wait for a dashboard card to load (#1556) (cherry picked from commit cb109c1de8c9448499eda35ac1258d760c3809d0) --- airgun/entities/dashboard.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/airgun/entities/dashboard.py b/airgun/entities/dashboard.py index 8684c38d0..f7dc64dad 100644 --- a/airgun/entities/dashboard.py +++ b/airgun/entities/dashboard.py @@ -1,3 +1,5 @@ +import time + from airgun.entities.base import BaseEntity from airgun.navigation import NavigateStep, navigator from airgun.utils import retry_navigation @@ -17,6 +19,7 @@ def read(self, widget_name): view = self.navigate_to(self, 'All') if widget_name not in view.widget_names: raise ValueError('Provide correct widget name to be read') + time.sleep(3) return getattr(view, widget_name).read() def read_all(self):