Skip to content

Commit

Permalink
wait for a dashboard card to load (#1556)
Browse files Browse the repository at this point in the history
  • Loading branch information
pondrejk authored Sep 12, 2024
1 parent ffd05ad commit cb109c1
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 cb109c1

Please sign in to comment.