diff --git a/pages/used_resources_page.py b/pages/used_resources_page.py index 913d645f9f..b9f5a59a50 100644 --- a/pages/used_resources_page.py +++ b/pages/used_resources_page.py @@ -85,17 +85,17 @@ def get_links_href(self): return [link.get_attribute('href') for link in self.get_list_of_links()] @allure.step("Get status code of links in sections") - def get_links_status_codes_brief(self): + def get_links_status_codes(self): return [requests.head(link_href).status_code for link_href in self.get_links_href()] @allure.step("Get status code of links in sections") - def get_links_status_codes(self): + def get_links_status_codes_detail(self): status_codes = [] links_href = self.get_links_href() for link_href in links_href: link_status_code = requests.head(link_href).status_code - print(f'For the link: {link_href}, \nstatus code: {link_status_code}') + # print(f'For the link: {link_href}, \nstatus code: {link_status_code}') status_codes.append(link_status_code) return status_codes