diff --git a/pages/exercises_ru_similar_phrases_page.py b/pages/exercises_ru_similar_phrases_page.py index 8dcf68e7ac..994867119b 100644 --- a/pages/exercises_ru_similar_phrases_page.py +++ b/pages/exercises_ru_similar_phrases_page.py @@ -76,10 +76,7 @@ def check_elements_visibility_on_7th_level(self): @allure.step("Check the list1 on the 5th level of nesting is present on the page") def get_list1_of_breadcrumbs_links(self): - elements = self.elements_are_present(self.locators.PAGE_LIST1) - tags = [element.tag_name for element in elements] - # print(*tags) - return elements + return self.elements_are_present(self.locators.PAGE_LIST1) @allure.step("Check the list1 is visible") def check_list1_visibility(self): @@ -87,10 +84,7 @@ def check_list1_visibility(self): @allure.step("Check the list2 on the 5th level of nesting is present on the page") def get_list2_of_group_links(self): - elements = self.elements_are_present(self.locators.PAGE_LIST2) - tags = [element.tag_name for element in elements] - # print(*tags) - return elements + return self.elements_are_present(self.locators.PAGE_LIST2) @allure.step("Check the list2 is visible") def check_list2_visibility(self): @@ -98,10 +92,7 @@ def check_list2_visibility(self): @allure.step("Check the list3 on the 5th level of nesting is present on the page") def get_list3_of_subgroup_links(self): - elements = self.elements_are_present(self.locators.PAGE_LIST3) - tags = [element.tag_name for element in elements] - # print(*tags) - return elements + return self.elements_are_present(self.locators.PAGE_LIST3) @allure.step("Check the list3 is visible") def check_list3_visibility(self): @@ -109,10 +100,7 @@ def check_list3_visibility(self): @allure.step("Check the list4 on the 6th level of nesting is present on the page") def get_list4_of_links(self): - elements = self.elements_are_present(self.locators.CARD_IMAGES_LIST4) - tags = [element.tag_name for element in elements] - # print(*tags) - return elements + return self.elements_are_present(self.locators.CARD_IMAGES_LIST4) @allure.step("Check the list4 is visible") def check_list4_visibility(self):