Skip to content

Commit e8b2226

Browse files
ref test_ersp_01.03 Verify structural elements
update exercises_ru_similar_phrases_page.py #478
1 parent 042c8c9 commit e8b2226

1 file changed

Lines changed: 4 additions & 16 deletions

File tree

‎pages/exercises_ru_similar_phrases_page.py‎

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -76,43 +76,31 @@ def check_elements_visibility_on_7th_level(self):
7676

7777
@allure.step("Check the list1 on the 5th level of nesting is present on the page")
7878
def get_list1_of_breadcrumbs_links(self):
79-
elements = self.elements_are_present(self.locators.PAGE_LIST1)
80-
tags = [element.tag_name for element in elements]
81-
# print(*tags)
82-
return elements
79+
return self.elements_are_present(self.locators.PAGE_LIST1)
8380

8481
@allure.step("Check the list1 is visible")
8582
def check_list1_visibility(self):
8683
return self.element_is_visible(self.locators.PAGE_LIST1)
8784

8885
@allure.step("Check the list2 on the 5th level of nesting is present on the page")
8986
def get_list2_of_group_links(self):
90-
elements = self.elements_are_present(self.locators.PAGE_LIST2)
91-
tags = [element.tag_name for element in elements]
92-
# print(*tags)
93-
return elements
87+
return self.elements_are_present(self.locators.PAGE_LIST2)
9488

9589
@allure.step("Check the list2 is visible")
9690
def check_list2_visibility(self):
9791
return self.element_is_visible(self.locators.PAGE_LIST2)
9892

9993
@allure.step("Check the list3 on the 5th level of nesting is present on the page")
10094
def get_list3_of_subgroup_links(self):
101-
elements = self.elements_are_present(self.locators.PAGE_LIST3)
102-
tags = [element.tag_name for element in elements]
103-
# print(*tags)
104-
return elements
95+
return self.elements_are_present(self.locators.PAGE_LIST3)
10596

10697
@allure.step("Check the list3 is visible")
10798
def check_list3_visibility(self):
10899
return all(element.is_displayed() for element in self.get_list3_of_subgroup_links())
109100

110101
@allure.step("Check the list4 on the 6th level of nesting is present on the page")
111102
def get_list4_of_links(self):
112-
elements = self.elements_are_present(self.locators.CARD_IMAGES_LIST4)
113-
tags = [element.tag_name for element in elements]
114-
# print(*tags)
115-
return elements
103+
return self.elements_are_present(self.locators.CARD_IMAGES_LIST4)
116104

117105
@allure.step("Check the list4 is visible")
118106
def check_list4_visibility(self):

0 commit comments

Comments
 (0)