@@ -112,26 +112,20 @@ def check_list4_visibility(self):
112112 # Checking text on the tab&page
113113 @allure .step ("Get value of the title of the tab" )
114114 def get_value_of_tab_title (self ):
115- tab_title = self .get_current_tab_title ()
116- return tab_title
115+ return self .get_current_tab_title ()
117116
118117 @allure .step ("Get value of the breadcrumbs on the page" )
119118 def get_value_of_breadcrumbs (self ):
120- breadcrumbs_text = [element .text for element in self .get_list1_of_breadcrumbs_links ()]
121119 # print(len(breadcrumbs_text), breadcrumbs_text, sep='\n')
122- return breadcrumbs_text
120+ return [ element . text for element in self . get_list1_of_breadcrumbs_links ()]
123121
124122 @allure .step ("Get text in group links on the page" )
125123 def get_group_links_text (self ):
126- links_text = [element .text for element in self .get_list2_of_group_links ()]
127- # print(len(links_text), *links_text, sep='\n')
128- return links_text
124+ return [element .text for element in self .get_list2_of_group_links ()]
129125
130126 @allure .step ("Get text in subgroup links on the page" )
131127 def get_subgroup_links_text (self ):
132- subgroup_links_text = [element .text for element in self .get_list3_of_subgroup_links ()]
133- # print(len(subgroup_links_text), subgroup_links_text, sep='\n')
134- return subgroup_links_text
128+ return [element .text for element in self .get_list3_of_subgroup_links ()]
135129
136130 # Checking links on the page
137131 @allure .step ("Check if breadcrumbs are clickable" )
@@ -140,9 +134,7 @@ def check_breadcrumbs_clickability(self):
140134
141135 @allure .step ("Get attribute 'href' of links in breadcrumbs" )
142136 def get_breadcrumbs_links_href (self ):
143- breadcrumbs_links_href = [element .get_attribute ("href" ) for element in self .get_list1_of_breadcrumbs_links ()]
144- # print(len(breadcrumbs_links_href), *breadcrumbs_links_href, sep='\n')
145- return breadcrumbs_links_href
137+ return [element .get_attribute ("href" ) for element in self .get_list1_of_breadcrumbs_links ()]
146138
147139 @allure .step ("Get status code of links in breadcrumbs" )
148140 def get_link_status_codes_in_breadcrumbs (self ):
@@ -154,25 +146,19 @@ def check_group_links_clickability(self):
154146
155147 @allure .step ("Get attribute 'title' of group links" )
156148 def get_group_link_titles (self ):
157- group_link_titles = [element .get_attribute ("title" ) for element in self .get_list2_of_group_links ()]
158- # print(len(group_link_titles), *group_link_titles, sep='\n')
159- return group_link_titles
149+ return [element .get_attribute ("title" ) for element in self .get_list2_of_group_links ()]
160150
161151 @allure .step ("Get attribute 'active-links' of group links" )
162152 def get_group_link_active_links (self ):
163- group_link_active_links = [el .get_attribute ("data-test-active-link" ) for el in self .get_list2_of_group_links ()]
164- # print(len(group_link_active_links), *group_link_active_links, sep='\n')
165- return group_link_active_links
153+ return [el .get_attribute ("data-test-active-link" ) for el in self .get_list2_of_group_links ()]
166154
167155 @allure .step ("Check if subgroup links are clickable" )
168156 def check_subgroup_links_clickability (self ):
169157 return all (link .is_enabled () for link in self .get_list3_of_subgroup_links ())
170158
171159 @allure .step ("Get attribute 'title' of subgroup links" )
172160 def get_subgroup_link_titles (self ):
173- subgroup_link_titles = [element .get_attribute ("title" ) for element in self .get_list3_of_subgroup_links ()]
174- # print(len(subgroup_link_titles), *subgroup_link_titles, sep='\n')
175- return subgroup_link_titles
161+ return [element .get_attribute ("title" ) for element in self .get_list3_of_subgroup_links ()]
176162
177163 @allure .step ("Get attribute 'href' of subgroup links" )
178164 def get_subgroup_links_href (self ):
0 commit comments