@@ -34,7 +34,6 @@ def check_elements_visibility_on_1st_level(self):
34
34
35
35
@allure .step ("Get structure of the 2nd level of nesting on the page" )
36
36
def get_structure_of_2nd_level (self ):
37
- # tags = [element.tag_name for element in elements]
38
37
return self .elements_are_present (self .locators .PAGE_SECOND_LEVEL_ELEMENTS )
39
38
40
39
@allure .step ("Check if elements of the 2nd level of nesting are visible" )
@@ -43,7 +42,6 @@ def check_elements_visibility_on_2nd_level(self):
43
42
44
43
@allure .step ("Get structure of the 3rd level of nesting on the page" )
45
44
def get_structure_of_3rd_level (self ):
46
- # tags = [element.tag_name for element in elements]
47
45
return self .elements_are_present (self .locators .PAGE_THIRD_LEVEL_ELEMENTS )
48
46
49
47
@allure .step ("Check if elements of the 3rd level of nesting are visible" )
@@ -52,7 +50,6 @@ def check_elements_visibility_on_3rd_level(self):
52
50
53
51
@allure .step ("Get structure of the 4th level of nesting on the page" )
54
52
def get_structure_of_4th_level (self ):
55
- # tags = [element.tag_name for element in elements]
56
53
return self .elements_are_present (self .locators .PAGE_FOURTH_LEVEL_ELEMENTS )
57
54
58
55
@allure .step ("Check if elements of the 4th level of nesting are visible" )
@@ -61,7 +58,6 @@ def check_elements_visibility_on_4th_level(self):
61
58
62
59
@allure .step ("Get structure of the 5th level of nesting on the page" )
63
60
def get_structure_of_5th_level (self ):
64
- # tags = [element.tag_name for element in elements]
65
61
return self .elements_are_present (self .locators .PAGE_FIFTH_LEVEL_ELEMENTS )
66
62
67
63
@allure .step ("Check if elements of the 5th level of nesting are visible" )
@@ -70,14 +66,11 @@ def check_elements_visibility_on_5th_level(self):
70
66
71
67
@allure .step ("Get structure of the 6th level of nesting on the page" )
72
68
def get_structure_of_6th_level (self ):
73
- elements = self .elements_are_present (self .locators .PAGE_SIXTH_LEVEL_ELEMENTS )
74
- # tags = [element.tag_name for element in elements]
75
- return elements
69
+ return self .elements_are_present (self .locators .PAGE_SIXTH_LEVEL_ELEMENTS )
76
70
77
71
@allure .step ("Check if elements of the 6th level of nesting are visible" )
78
72
def check_elements_visibility_on_6th_level (self ):
79
- elements = self .get_structure_of_6th_level ()
80
- return all (element .is_displayed () for element in elements )
73
+ return all (element .is_displayed () for element in self .get_structure_of_6th_level ())
81
74
82
75
@allure .step ("Check the title h3 on the 2nd level of nesting is present on the page" )
83
76
def check_title_presence (self ):
@@ -97,13 +90,11 @@ def check_visibility_of_tiles(self):
97
90
98
91
@allure .step ("Get the list of images on the 6th level of nesting on the page" )
99
92
def get_list_of_images (self ):
100
- elements = self .elements_are_present (self .locators .PAGE_IMAGES )
101
- return elements
93
+ return self .elements_are_present (self .locators .PAGE_IMAGES )
102
94
103
95
@allure .step ("Check if images on the 6th level of nesting are visible" )
104
96
def check_visibility_of_images (self ):
105
- elements = self .get_list_of_images ()
106
- return all (element .is_displayed () for element in elements )
97
+ return all (element .is_displayed () for element in self .get_list_of_images ())
107
98
108
99
@allure .step ("Get the list of subtitles on the 6th level of nesting on the page" )
109
100
def get_list_of_subtitles (self ):
0 commit comments