From 69da3e17d6c59e89d89a319f3a02ef5891e52438 Mon Sep 17 00:00:00 2001 From: Satellite QE <115476073+Satellite-QE@users.noreply.github.com> Date: Mon, 18 Nov 2024 02:40:06 -0500 Subject: [PATCH] Add a couple of waits to RH repos pages (#1631) (#1633) --- airgun/entities/redhat_repository.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/airgun/entities/redhat_repository.py b/airgun/entities/redhat_repository.py index 38e55508b..14401d8d5 100644 --- a/airgun/entities/redhat_repository.py +++ b/airgun/entities/redhat_repository.py @@ -28,6 +28,7 @@ def read(self, entity_name=None, category='Available', recommended_repo=None): :param recommended_repo: on/off RH recommended repositories """ view = self.navigate_to(self, 'All') + view.wait_displayed() if recommended_repo: current_value = self.browser.get_attribute( @@ -67,6 +68,7 @@ def disable(self, entity_name, orphaned=False): :param bool orphaned: Whether the repository is Orphaned """ view = self.navigate_to(self, 'All') + view.wait_displayed() view.search(f'name = "{entity_name}"', category='Enabled') entity_text = f'{entity_name} (Orphaned)' if orphaned else entity_name view.enabled.items(name=entity_text)[0].disable()