Skip to content

Commit

Permalink
wait for a dashboard card to load (#1556) (#1560)
Browse files Browse the repository at this point in the history
  • Loading branch information
Satellite-QE committed Sep 12, 2024
1 parent d5e6936 commit 0005b5f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions airgun/entities/dashboard.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import time

from airgun.entities.base import BaseEntity
from airgun.navigation import NavigateStep, navigator
from airgun.utils import retry_navigation
Expand All @@ -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):
Expand Down

0 comments on commit 0005b5f

Please sign in to comment.