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()