diff --git a/airgun/entities/host_new.py b/airgun/entities/host_new.py index 109c0c5c8..00c462adc 100644 --- a/airgun/entities/host_new.py +++ b/airgun/entities/host_new.py @@ -311,6 +311,18 @@ def apply_erratas(self, entity_name, search): view.flash.assert_no_error() view.flash.dismiss() + def get_errata_pagination(self, entity_name): + """Get pagination info from Errata tab on selected host""" + view = self.navigate_to(self, 'NewDetails', entity_name=entity_name) + view.wait_displayed() + view.content.errata.select() + # pass empty search to show any and all, + # if a previous method left the searchbar filled + view.content.errata.searchbar.fill(' ') + view.content.errata.wait_displayed() + self.browser.plugin.ensure_page_safe() + return view.content.errata.pagination + def get_module_streams(self, entity_name, search): """Filter module streams""" view = self.navigate_to(self, 'NewDetails', entity_name=entity_name) diff --git a/airgun/views/host_new.py b/airgun/views/host_new.py index 813cb5a40..4ce54cda7 100644 --- a/airgun/views/host_new.py +++ b/airgun/views/host_new.py @@ -359,7 +359,7 @@ class errata(Tab): 8: Dropdown(locator='./div'), }, ) - pagination = PF4Pagination() + pagination = PF4Pagination("//div[@class = 'pf-c-pagination pf-m-bottom tfm-pagination']") @View.nested class module_streams(Tab):